[gnome-panel] panel: Fix size of applets using size hints if they are not packed alone



commit c6bdfc7a660a4a5b969e4a31683f849cd43d7019
Author: Vincent Untz <vuntz gnome org>
Date:   Thu Mar 31 05:50:49 2011 +0530

    panel: Fix size of applets using size hints if they are not packed alone
    
    This is for the expanded mode. For some reason I ignore, we were
    starting by giving the minimum size to such applets, while we do have
    many passes that allow us to move from the maximum size to a smaller
    size -- we were instead going from the minimum size to a bigger size.
    
    This change makes sure we really give as much as possible to such
    applets. This is needed with the new packing model where the packing
    actually just gave the minimal size to size hints applets because they
    weren't requesting more.

 gnome-panel/panel-widget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index 9d3c214..add14dc 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -1443,7 +1443,7 @@ panel_widget_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
 
 				ad->min_cells = ad->cells;
 			} else {
-				ad->cells = ad->size_hints [ad->size_hints_len - 1];
+				ad->cells = ad->size_hints [0];
 				ad->min_cells = ad->size_hints [ad->size_hints_len - 1];
 			}
 		}



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