sadrul.gtkblist-theme: a5741200: Reload settings after updating icon them...

sadrul at pidgin.im sadrul at pidgin.im
Wed Apr 22 22:41:20 EDT 2009


-----------------------------------------------------------------
Revision: a57412002fdb5aebb7db072fdd4af6edafb78d84
Ancestor: 75eb6a1aa1a2328c1d9d65244bf005aa902d7127
Author: sadrul at pidgin.im
Date: 2009-04-23T02:42:50
Branch: im.pidgin.sadrul.gtkblist-theme
URL: http://d.pidgin.im/viewmtn/revision/info/a57412002fdb5aebb7db072fdd4af6edafb78d84

Modified files:
        pidgin/pidginstock.c

ChangeLog: 

Reload settings after updating icon theme.
This makes sure the icons in the infopane, userlist etc. in the
conversation window update properly after a theme change.

-------------- next part --------------
============================================================
--- pidgin/pidginstock.c	10dca6ce397a4ac955c62ed55d82301264e957d6
+++ pidgin/pidginstock.c	972408473427327f927f52c5b3715299484c8f13
@@ -409,6 +409,16 @@ add_sized_icon(GtkIconSet *iconset, GtkI
 	}
 }
 
+static void
+reload_settings(void)
+{
+#if GTK_CHECK_VERSION(2,4,0)
+	GtkSettings *setting = NULL;
+	setting = gtk_settings_get_default();
+	gtk_rc_reset_styles(setting);
+#endif
+}
+
 /*****************************************************************************
  * Public API functions
  *****************************************************************************/
@@ -471,6 +481,7 @@ pidgin_stock_load_status_icon_theme(Pidg
 
 	gtk_widget_destroy(win);
 	g_object_unref(G_OBJECT(icon_factory));
+	reload_settings();
 }
 
 void
@@ -553,6 +564,7 @@ pidgin_stock_load_stock_icon_theme(Pidgi
 
 	gtk_widget_destroy(win);
 	g_object_unref(G_OBJECT(icon_factory));
+	reload_settings();
 }
 
 void


More information about the Commits mailing list