[gnome-panel] PanelWidget: remove unused variable - thick
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] PanelWidget: remove unused variable - thick
- Date: Sat, 7 Dec 2013 19:18:33 +0000 (UTC)
commit 2d8f9b69037f56aed560ba4ad9129e28e0ba3a33
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Dec 7 21:14:50 2013 +0200
PanelWidget: remove unused variable - thick
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 415edb0..88e054d 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1503,12 +1503,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);
}
@@ -1703,7 +1697,6 @@ panel_widget_init (PanelWidget *panel)
panel->packed = FALSE;
panel->orient = GTK_ORIENTATION_HORIZONTAL;
- panel->thick = PANEL_MINIMUM_WIDTH;
panel->size = 0;
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]