Skip to content

Commit

Permalink
avoid deprecated 'gtk_window_set_wmclass'
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w authored and lukefromdc committed Jun 4, 2018
1 parent cfc9b47 commit 347e1f1
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 10 deletions.
2 changes: 0 additions & 2 deletions libcaja-private/caja-file-operations.c
Expand Up @@ -2339,8 +2339,6 @@ prompt_empty_trash (GtkWindow *parent_window)
gtk_window_set_screen (GTK_WINDOW (dialog), screen);
}
atk_object_set_role (gtk_widget_get_accessible (dialog), ATK_ROLE_ALERT);
gtk_window_set_wmclass (GTK_WINDOW (dialog), "empty_trash",
"Caja");

/* Make transient for the window group */
gtk_widget_realize (dialog);
Expand Down
4 changes: 2 additions & 2 deletions libcaja-private/caja-progress-info.c
Expand Up @@ -239,10 +239,10 @@ get_progress_window ()

gtk_window_set_title (GTK_WINDOW (progress_window),
_("File Operations"));
gtk_window_set_wmclass (GTK_WINDOW (progress_window),
"file_progress", "Caja");

gtk_window_set_position (GTK_WINDOW (progress_window),
GTK_WIN_POS_CENTER);

gtk_window_set_icon_name (GTK_WINDOW (progress_window),
"system-file-manager");

Expand Down
1 change: 0 additions & 1 deletion src/caja-bookmarks-window.c
Expand Up @@ -286,7 +286,6 @@ create_bookmarks_window (CajaBookmarkList *list, CajaWindow *window_source)

set_up_close_accelerator (window);

gtk_window_set_wmclass (GTK_WINDOW (window), "bookmarks", "Caja");
caja_bookmarks_window_restore_geometry (window);

g_object_weak_ref (G_OBJECT (window_source), edit_bookmarks_dialog_reset_signals,
Expand Down
3 changes: 0 additions & 3 deletions src/caja-desktop-window.c
Expand Up @@ -152,9 +152,6 @@ caja_desktop_window_new (CajaApplication *application,
/* will cause the desktop window to open at the wrong size in gtk 3.20 */
gtk_window_set_default_size (GTK_WINDOW (window), -1, -1);

/* Special sawmill setting*/
gtk_window_set_wmclass (GTK_WINDOW (window), "desktop_window", "Caja");

g_signal_connect (window, "delete_event", G_CALLBACK (caja_desktop_window_delete_event), NULL);

/* Point window at the desktop folder.
Expand Down
2 changes: 1 addition & 1 deletion src/caja-property-browser.c
Expand Up @@ -292,7 +292,7 @@ caja_property_browser_init (CajaPropertyBrowser *property_browser)

/* set the title and standard close accelerator */
gtk_window_set_title (GTK_WINDOW (widget), _("Backgrounds and Emblems"));
gtk_window_set_wmclass (GTK_WINDOW (widget), "property_browser", "Caja");

gtk_window_set_type_hint (GTK_WINDOW (widget), GDK_WINDOW_TYPE_HINT_DIALOG);

GtkStyleContext *context;
Expand Down
1 change: 0 additions & 1 deletion src/file-manager/fm-properties-window.c
Expand Up @@ -5087,7 +5087,6 @@ create_properties_window (StartupData *startup_data)

window->details->target_files = caja_file_list_copy (startup_data->target_files);

gtk_window_set_wmclass (GTK_WINDOW (window), "file_properties", "Caja");
gtk_window_set_screen (GTK_WINDOW (window),
gtk_widget_get_screen (startup_data->parent_widget));

Expand Down

0 comments on commit 347e1f1

Please sign in to comment.