changeset 26640:c13c256c56c0

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.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 23 Apr 2009 02:42:50 +0000
parents d78f1d400d2f
children b2b0bd2afcb2
files pidgin/pidginstock.c
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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