From 829d6bcbe181af1f1c80f9d36a0bdb08a53e4cc9 Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 27 May 2017 14:01:36 +0300 Subject: libslab: make ThemedIcon use style_updated instead of style_set makes icons in m-c-c shell properly react to icon theme change --- libslab/themed-icon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libslab/themed-icon.c b/libslab/themed-icon.c index b4259c4f..29c4a0cc 100644 --- a/libslab/themed-icon.c +++ b/libslab/themed-icon.c @@ -29,7 +29,7 @@ static void themed_icon_get_property (GObject *, guint, GValue *, GParamSpec *); static void themed_icon_set_property (GObject *, guint, const GValue *, GParamSpec *); static void themed_icon_show (GtkWidget *); -static void themed_icon_style_set (GtkWidget *, GtkStyle *); +static void themed_icon_style_updated (GtkWidget *); enum { @@ -57,7 +57,7 @@ static void themed_icon_class_init (ThemedIconClass * themed_icon_class) g_obj_class->finalize = themed_icon_finalize; widget_class->show = themed_icon_show; - widget_class->style_set = themed_icon_style_set; + widget_class->style_updated = themed_icon_style_updated; g_type_class_add_private (themed_icon_class, sizeof (ThemedIconPrivate)); @@ -157,7 +157,7 @@ themed_icon_show (GtkWidget * widget) } static void -themed_icon_style_set (GtkWidget * widget, GtkStyle * prev_style) +themed_icon_style_updated (GtkWidget * widget) { ThemedIcon *icon = THEMED_ICON (widget); -- cgit v1.2.1