[gnome-panel] libpanel-applet: remove panel_applet_handle_background



commit 223049038c3910efc7d41204052b26fe308636bb
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Sep 21 17:25:10 2016 +0300

    libpanel-applet: remove panel_applet_handle_background

 libpanel-applet/panel-applet.c |   44 ----------------------------------------
 1 files changed, 0 insertions(+), 44 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index 74fce64..24dd355 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -92,9 +92,6 @@ struct _PanelAppletPrivate {
        PanelAppletOrient  orient;
        char              *background;
 
-       int                previous_width;
-       int                previous_height;
-
         int               *size_hints;
         int                size_hints_len;
 
@@ -124,7 +121,6 @@ enum {
        PROP_LOCKED_DOWN
 };
 
-static void       panel_applet_handle_background   (PanelApplet       *applet);
 static GAction   *panel_applet_menu_get_action     (PanelApplet       *applet,
                                                    const gchar       *action);
 static void       panel_applet_menu_update_actions (PanelApplet       *applet);
@@ -1134,7 +1130,6 @@ panel_applet_size_allocate (GtkWidget     *widget,
        GtkBin        *bin;
        GtkWidget     *child;
        int            border_width;
-       PanelApplet   *applet;
 
        if (!panel_applet_can_focus (widget)) {
                GTK_WIDGET_CLASS (panel_applet_parent_class)->size_allocate (widget, allocation);
@@ -1161,16 +1156,6 @@ panel_applet_size_allocate (GtkWidget     *widget,
                if (child)
                        gtk_widget_size_allocate (child, &child_allocation);
        }
-
-       applet = PANEL_APPLET (widget);
-
-       if (applet->priv->previous_height != allocation->height ||
-           applet->priv->previous_width  != allocation->width) {
-               applet->priv->previous_height = allocation->height;
-               applet->priv->previous_width = allocation->width;
-
-               panel_applet_handle_background (applet);
-       }
 }
 
 static gboolean
@@ -1269,38 +1254,11 @@ panel_applet_set_background_string (PanelApplet *applet,
        if (applet->priv->background)
                g_free (applet->priv->background);
        applet->priv->background = background ? g_strdup (background) : NULL;
-       panel_applet_handle_background (applet);
 
        g_object_notify (G_OBJECT (applet), "background");
 }
 
 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_handle_background (PanelApplet *applet)
-{
-}
-
-static void
-panel_applet_realize (GtkWidget *widget)
-{
-       GTK_WIDGET_CLASS (panel_applet_parent_class)->realize (widget);
-
-       if (PANEL_APPLET (widget)->priv->background)
-               panel_applet_handle_background (PANEL_APPLET (widget));
-}
-
-static void
 panel_applet_move_focus_out_of_applet (PanelApplet      *applet,
                                       GtkDirectionType  dir)
 {
@@ -1545,9 +1503,7 @@ panel_applet_class_init (PanelAppletClass *klass)
        widget_class->get_request_mode = panel_applet_get_request_mode;
        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;
 
        /**
         * PanelApplet:id: (skip)


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