[epiphany/wip/exalm/gtk4-cleanups-2: 5/27] web-app-utils: Don't set program class




commit 4744572d74dfb5c510ca087a77a392b95bd1b60a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Tue Nov 30 02:23:31 2021 +0500

    web-app-utils: Don't set program class
    
    This is X11-only and won't be possible in GTK4.

 lib/ephy-web-app-utils.c | 13 -------------
 1 file changed, 13 deletions(-)
---
diff --git a/lib/ephy-web-app-utils.c b/lib/ephy-web-app-utils.c
index d60b7dfa6..62463b0b0 100644
--- a/lib/ephy-web-app-utils.c
+++ b/lib/ephy-web-app-utils.c
@@ -510,11 +510,6 @@ ephy_web_application_setup_from_profile_directory (const char *profile_directory
   app_icon = g_build_filename (profile_directory, EPHY_WEB_APP_ICON_NAME, NULL);
   gtk_window_set_default_icon_from_file (app_icon, NULL);
 
-  /* We need to re-set this because we have already parsed the
-   * options, which inits GTK+ and sets this as a side effect.
-   */
-  gdk_set_program_class (program_name);
-
   g_free (app_icon);
   g_free (desktop_basename);
   g_free (desktop_filename);
@@ -525,7 +520,6 @@ void
 ephy_web_application_setup_from_desktop_file (GDesktopAppInfo *desktop_info)
 {
   GAppInfo *app_info;
-  const char *wm_class;
   GIcon *icon;
 
   g_assert (G_IS_DESKTOP_APP_INFO (desktop_info));
@@ -549,13 +543,6 @@ ephy_web_application_setup_from_desktop_file (GDesktopAppInfo *desktop_info)
     if (names)
       gtk_window_set_default_icon_name (names[0]);
   }
-
-  /* We need to re-set this because we have already parsed the
-   * options, which inits GTK+ and sets this as a side effect.
-   */
-  wm_class = g_desktop_app_info_get_startup_wm_class (desktop_info);
-  if (wm_class)
-    gdk_set_program_class (wm_class);
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]