[bijiben] window-base: don't call gtk_window_set_icon_list()



commit 121f0a3593a023378bd5f0b55995f306b7029080
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jul 6 23:29:39 2015 -0700

    window-base: don't call gtk_window_set_icon_list()
    
    This is not needed; the desktop shell will automatically read the icon
    at the appropriate size from the desktop file.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761436

 src/bjb-window-base.c |   30 ------------------------------
 1 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/src/bjb-window-base.c b/src/bjb-window-base.c
index d13e594..bd668a7 100644
--- a/src/bjb-window-base.c
+++ b/src/bjb-window-base.c
@@ -265,11 +265,6 @@ bjb_window_base_constructed (GObject *obj)
 {
   BjbWindowBase *self = BJB_WINDOW_BASE (obj);
   BjbWindowBasePriv *priv;
-  const gchar *icons_path;
-  gchar *full_path;
-  GList *icons = NULL;
-  GdkPixbuf *bjb ;
-  GError *error = NULL;
   gboolean maximized;
   const gint32 *position;
   const gint32 *size;
@@ -305,31 +300,6 @@ bjb_window_base_constructed (GObject *obj)
   if (maximized)
     gtk_window_maximize (GTK_WINDOW (self));
 
-
-  /* Icon for window. TODO - Should be BjbApp */
-  icons_path = bijiben_get_bijiben_dir ();
-  full_path = g_build_filename (icons_path,
-                                "icons",
-                                "hicolor",
-                                "48x48",
-                                "apps",
-                                "org.gnome.bijiben.png",
-                                NULL);
-
-  bjb = gdk_pixbuf_new_from_file (full_path, &error);
-  g_free (full_path);
-
-  if ( error )
-  {
-    g_message("%s", error->message);
-    g_error_free(error);
-  }
-
-  icons = g_list_prepend(icons,bjb);
-  gtk_window_set_default_icon_list(icons);
-  g_list_foreach (icons, (GFunc) g_object_unref, NULL);
-  g_list_free (icons);
-
   /*  We probably want to offer a no entry window at first (startup) */
   priv->entry = NULL ;
 


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