[gnome-panel/gnome-3-8] PanelWidget: remove unused variable - thick



commit 150bb6398c5393fd99d26912a0aa26dbdf20fa59
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Dec 7 21:14:50 2013 +0200

    PanelWidget: remove unused variable - thick
    
    Signed-off-by: Philipp Kaluza <floss ghostroute eu>

 gnome-panel/panel-widget.c |    7 -------
 gnome-panel/panel-widget.h |    5 -----
 2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index faa9798..e189989 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1495,12 +1495,6 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
                }
        }
 
-
-       if(panel->orient == GTK_ORIENTATION_HORIZONTAL)
-               panel->thick = allocation->height;
-       else
-               panel->thick = allocation->width;
-
        panel_widget_set_background_region (panel);
 }
 
@@ -1695,7 +1689,6 @@ panel_widget_init (PanelWidget *panel)
        
        panel->packed        = FALSE;
        panel->orient        = GTK_ORIENTATION_HORIZONTAL;
-       panel->thick         = PANEL_MINIMUM_WIDTH;
        panel->size          = G_MAXINT;
        panel->applet_list   = NULL;
        panel->drop_widget   = widget;
diff --git a/gnome-panel/panel-widget.h b/gnome-panel/panel-widget.h
index 81f6b56..a4df7ad 100644
--- a/gnome-panel/panel-widget.h
+++ b/gnome-panel/panel-widget.h
@@ -10,7 +10,6 @@
 #ifndef PANEL_WIDGET_H
 #define PANEL_WIDGET_H
 
-
 #include <gtk/gtk.h>
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include "button-widget.h"
@@ -25,8 +24,6 @@ G_BEGIN_DECLS
 #define PANEL_WIDGET_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), PANEL_TYPE_WIDGET, 
PanelWidgetClass))
 #define PANEL_IS_WIDGET(object)        (G_TYPE_CHECK_INSTANCE_TYPE ((object), PANEL_TYPE_WIDGET)) 
 
-#define PANEL_MINIMUM_WIDTH 12
-
 #define PANEL_APPLET_DATA "panel_applet_data"
 
 #ifndef TYPEDEF_PANEL_WIDGET
@@ -90,8 +87,6 @@ struct _PanelWidget
        AppletData     *currently_dragged_applet;
        guint           dragged_state;
 
-       int             thick;
-
        PanelBackground background;
 
        GtkWidget      *drop_widget;     /* widget that the panel checks for


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