[gnome-panel] panel: Do not forcecully center non-expanded panels on login
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel: Do not forcecully center non-expanded panels on login
- Date: Wed, 31 Aug 2011 10:51:39 +0000 (UTC)
commit 71aeff0f78f4d12e54bdf3fe0533bf89beddab9f
Author: Matt McCutchen <matt mattmccutchen net>
Date: Wed Aug 31 12:50:00 2011 +0200
panel: Do not forcecully center non-expanded panels on login
When unexpanding panels, we only want to center them if this action is
done when changing the expand property, not when initially loading it.
gnome-panel/panel-toplevel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 466d7da..5e8a966 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -4694,7 +4694,8 @@ panel_toplevel_set_expand (PanelToplevel *toplevel,
toplevel->priv->expand = expand;
- if (!toplevel->priv->expand) {
+ if (!toplevel->priv->expand &&
+ toplevel->priv->updated_geometry_initial) {
switch (toplevel->priv->orientation) {
case PANEL_ORIENTATION_TOP:
panel_toplevel_set_x (toplevel, 0, -1, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]