[gnome-panel] panel: Remove unused no_die field in structure



commit d44814bb363742ffa170f8104c23cad23b6fbf50
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Apr 13 15:57:57 2011 +0200

    panel: Remove unused no_die field in structure

 gnome-panel/panel-widget.c |    5 -----
 gnome-panel/panel-widget.h |    4 ----
 2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index 9a13f63..8d375b9 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -2432,7 +2432,6 @@ panel_widget_add (PanelWidget         *panel,
 		ad->pack_type = pack_type;
 		ad->pack_index = pack_index;
 		ad->constrained = 0;
-		ad->no_die = 0;
 		ad->size_constrained = FALSE;
 		ad->expand_major = FALSE;
 		ad->expand_minor = FALSE;
@@ -2493,8 +2492,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));
@@ -2518,8 +2515,6 @@ panel_widget_reparent (PanelWidget         *old_panel,
 
 	gdk_flush();
 
-	ad->no_die--;
-
 	emit_applet_moved (new_panel, ad);
 
 	return TRUE;
diff --git a/gnome-panel/panel-widget.h b/gnome-panel/panel-widget.h
index 1723fa8..81f6b56 100644
--- a/gnome-panel/panel-widget.h
+++ b/gnome-panel/panel-widget.h
@@ -66,10 +66,6 @@ struct _AppletData
 	int		cells;
 	int             min_cells;
 
-	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;



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