[gnome-panel] [panel] Fix applet right-sticking on screen resolution change



commit 8871b8e00929df310936f0d6ba8b7b88044e2e4f
Author: Mark McLoughlin <mark skynet ie>
Date:   Tue Mar 9 04:10:56 2010 +0100

    [panel] Fix applet right-sticking on screen resolution change
    
    https://bugzilla.gnome.org/show_bug.cgi?id=314235
    https://bugzilla.gnome.org/show_bug.cgi?id=341441

 gnome-panel/panel-widget.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index f3ee92f..cfdc8c5 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1174,7 +1174,7 @@ panel_widget_right_stick(PanelWidget *panel,int old_size)
 
 	ad = list->data;
 	do { 
-		i = ad->constrained;
+		i = ad->pos;
 		ad->pos = ad->constrained = pos--;
 		ad->cells = 1;
 		prev = list;
@@ -1182,7 +1182,7 @@ panel_widget_right_stick(PanelWidget *panel,int old_size)
 		if(!list)
 			break;
 		ad = list->data;
-	} while(ad->constrained + ad->cells == i);
+	} while(ad->pos + ad->cells == i);
 
 	for (list = prev; list; list = list->next)
 		emit_applet_moved (panel, list->data);



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