# HG changeset patch # User Sadrul Habib Chowdhury # Date 1240454570 0 # Node ID c13c256c56c0ac4ea14cbaaa0d4b912bec2e3f73 # Parent d78f1d400d2f79ba201f6f9add1497e6c55960ca 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. diff -r d78f1d400d2f -r c13c256c56c0 pidgin/pidginstock.c --- a/pidgin/pidginstock.c Thu Apr 23 02:31:03 2009 +0000 +++ b/pidgin/pidginstock.c Thu Apr 23 02:42:50 2009 +0000 @@ -409,6 +409,16 @@ } } +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 @@ gtk_widget_destroy(win); g_object_unref(G_OBJECT(icon_factory)); + reload_settings(); } void @@ -553,6 +564,7 @@ gtk_widget_destroy(win); g_object_unref(G_OBJECT(icon_factory)); + reload_settings(); } void