general: Stop setting WM class

According to GTK+ docs, this should be the same for all windows of an
application, and GTK+ defaults to doing that itself. However, there is a
slight issue in that the properties window sets a custom window icon
that isn’t reset instantaneously after closing the dialog.
This commit is contained in:
Ernestas Kulik 2018-05-21 13:41:49 +03:00
parent 2507db5aba
commit a781e5aee3
2 changed files with 0 additions and 4 deletions

View file

@ -2793,8 +2793,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",
"Nautilus");
/* Make transient for the window group */
gtk_widget_realize (dialog);

View file

@ -5043,8 +5043,6 @@ create_properties_window (StartupData *startup_data)
window->target_files = nautilus_file_list_copy (startup_data->target_files);
gtk_window_set_wmclass (GTK_WINDOW (window), "file_properties", "Nautilus");
if (startup_data->parent_widget)
{
gtk_window_set_screen (GTK_WINDOW (window),