[gnome-panel] libpanel-applet: use applet as background widget



commit 09882bd50aaf2c97827bb56e23193344d4610a7e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Tue Apr 14 10:47:00 2015 +0300

    libpanel-applet: use applet as background widget
    
    If background widget is not set then use applet as background
    widget.

 libpanel-applet/panel-applet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index e5ba44c..c4c715b 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -1539,6 +1539,8 @@ panel_applet_handle_background (PanelApplet *applet)
        if (applet->priv->background_widget)
                panel_applet_update_background_for_widget (applet->priv->background_widget,
                                                           pattern);
+       else
+               panel_applet_update_background_for_widget (GTK_WIDGET (applet), pattern);
 
         g_signal_emit (G_OBJECT (applet),
                         panel_applet_signals [CHANGE_BACKGROUND],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]