[gnome-panel] libpanel-applet: update background on style_updated signal
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] libpanel-applet: update background on style_updated signal
- Date: Tue, 14 Apr 2015 08:58:35 +0000 (UTC)
commit 054ed0fa3282e9a9d454da6769c8f4d4fe853c8a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Apr 14 11:52:47 2015 +0300
libpanel-applet: update background on style_updated signal
libpanel-applet/panel-applet.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index c4c715b..c593b0b 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -1515,6 +1515,18 @@ panel_applet_set_background_string (PanelApplet *applet,
}
static void
+panel_applet_style_updated (GtkWidget *widget)
+{
+ PanelApplet *applet;
+
+ applet = PANEL_APPLET (widget);
+
+ GTK_WIDGET_CLASS (panel_applet_parent_class)->style_updated (widget);
+
+ panel_applet_handle_background (applet);
+}
+
+static void
panel_applet_update_background_for_widget (GtkWidget *widget,
cairo_pattern_t *pattern)
{
@@ -1836,6 +1848,7 @@ panel_applet_class_init (PanelAppletClass *klass)
widget_class->get_preferred_height = panel_applet_get_preferred_height;
widget_class->size_allocate = panel_applet_size_allocate;
widget_class->draw = panel_applet_draw;
+ widget_class->style_updated = panel_applet_style_updated;
widget_class->focus = panel_applet_focus;
widget_class->realize = panel_applet_realize;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]