/pidgin/main: 3ed06e9d1a86: Fix a gtk3 warning

Tomasz Wasilczyk twasilczyk at pidgin.im
Wed Apr 30 16:20:23 EDT 2014


Changeset: 3ed06e9d1a86939eea607e1adbe8f9cf7e1eff2f
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-30 22:20 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/3ed06e9d1a86

Description:

Fix a gtk3 warning

diffstat:

 pidgin/pidginstock.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (17 lines):

diff --git a/pidgin/pidginstock.c b/pidgin/pidginstock.c
--- a/pidgin/pidginstock.c
+++ b/pidgin/pidginstock.c
@@ -388,9 +388,13 @@ add_sized_icon(GtkIconSet *iconset, GtkI
 static void
 reload_settings(void)
 {
+#if GTK_CHECK_VERSION(3,0,0)
+	gtk_style_context_reset_widgets(gdk_screen_get_default());
+#else
 	GtkSettings *setting = NULL;
 	setting = gtk_settings_get_default();
 	gtk_rc_reset_styles(setting);
+#endif
 }
 
 /*****************************************************************************



More information about the Commits mailing list