[gnome-panel/wip/packed-objects: 13/17] panel: Fix size of applets using size hints if they are not packed alone
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/packed-objects: 13/17] panel: Fix size of applets using size hints if they are not packed alone
- Date: Thu, 31 Mar 2011 07:00:29 +0000 (UTC)
commit 980c8ed7eccf9a264a85dba8b9a0e3203a0bfe4e
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]