Skip to content
Permalink
Browse files

avoid deprecated 'gtk_window_set_wmclass'

  • Loading branch information...
sc0w authored and lukefromdc committed Jun 1, 2018
1 parent cfc9b47 commit 347e1f170005496ce1bf3e672f46419dca6b558e
@@ -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);
@@ -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");

@@ -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,
@@ -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.
@@ -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;
@@ -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));

0 comments on commit 347e1f1

Please sign in to comment.
You can’t perform that action at this time.