summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-21 15:45:18 +0300
committermonsta <[email protected]>2015-12-21 15:45:18 +0300
commit08a0832a7ad68b708727f6bb1288888dfa4cb1a9 (patch)
treecec04a943f10c81331f386e74b550da499f93285
parent93750e6432351d2584ea1dbeb73579f030523f4d (diff)
downloadmate-panel-08a0832a7ad68b708727f6bb1288888dfa4cb1a9.tar.bz2
mate-panel-08a0832a7ad68b708727f6bb1288888dfa4cb1a9.tar.xz
panel-widget: drop unused variables (assigned but never read after)
-rw-r--r--mate-panel/panel-widget.c10
-rw-r--r--mate-panel/panel-widget.h6
2 files changed, 0 insertions, 16 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index e3752d61..0f59a79c 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1587,10 +1587,6 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
gtk_widget_size_allocate(ad->applet,&challoc);
}
}
- if(panel->orient == GTK_ORIENTATION_HORIZONTAL)
- panel->thick = allocation->height;
- else
- panel->thick = allocation->width;
panel_widget_set_background_region (panel);
}
@@ -1863,7 +1859,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->master_widget = NULL;
@@ -2741,7 +2736,6 @@ panel_widget_add (PanelWidget *panel,
ad->pos = pos;
ad->constrained = pos;
ad->drag_off = 0;
- ad->no_die = 0;
ad->size_constrained = FALSE;
ad->expand_major = FALSE;
ad->expand_minor = FALSE;
@@ -2812,8 +2806,6 @@ panel_widget_reparent (PanelWidget *old_panel,
gtk_widget_queue_resize (GTK_WIDGET (new_panel));
gtk_widget_queue_resize (GTK_WIDGET (old_panel));
- ad->no_die++;
-
panel_widget_reset_saved_focus (old_panel);
if (gtk_container_get_focus_child (GTK_CONTAINER (old_panel)) == applet)
focus_widget = gtk_window_get_focus (GTK_WINDOW (old_panel->toplevel));
@@ -2837,8 +2829,6 @@ panel_widget_reparent (PanelWidget *old_panel,
gdk_flush();
- ad->no_die--;
-
emit_applet_moved (new_panel, ad);
return TRUE;
diff --git a/mate-panel/panel-widget.h b/mate-panel/panel-widget.h
index c844b217..20698483 100644
--- a/mate-panel/panel-widget.h
+++ b/mate-panel/panel-widget.h
@@ -72,10 +72,6 @@ struct _AppletData
int drag_off; /* offset on the applet where drag
was started */
- int no_die; /* if >0 never send the about to die
- signal, an int and not a bool for
- nesting reasons */
-
/* Valid size ranges for expanded applets */
int * size_hints;
int size_hints_len;
@@ -101,8 +97,6 @@ struct _PanelWidget
AppletData *currently_dragged_applet;
- int thick;
-
PanelBackground background;
GtkWidget *master_widget;