summaryrefslogtreecommitdiff
path: root/libslab/themed-icon.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-05-27 14:01:36 +0300
committermonsta <[email protected]>2017-05-30 13:26:48 +0300
commit829d6bcbe181af1f1c80f9d36a0bdb08a53e4cc9 (patch)
treeb63749c41f2a38227ecd2dfbd1dbf8264c68516b /libslab/themed-icon.c
parent9169a1d5d4d5ac5d8a14bc021be09a0a80eb9996 (diff)
downloadmate-control-center-829d6bcbe181af1f1c80f9d36a0bdb08a53e4cc9.tar.bz2
mate-control-center-829d6bcbe181af1f1c80f9d36a0bdb08a53e4cc9.tar.xz
libslab: make ThemedIcon use style_updated instead of style_set
makes icons in m-c-c shell properly react to icon theme change
Diffstat (limited to 'libslab/themed-icon.c')
-rw-r--r--libslab/themed-icon.c6
1 files 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);