summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-05-03 21:04:09 +0200
committerStefano Karapetsas <[email protected]>2013-05-03 21:04:09 +0200
commite24ec19b6b316e42a73ac92db8982e550c6917f8 (patch)
treecd7342daf550941b5c781126eb3d5e6802fc6b60
parent77059fb092a44f1a9c8c5c5e888899028458ff10 (diff)
downloadmate-panel-e24ec19b6b316e42a73ac92db8982e550c6917f8.tar.bz2
mate-panel-e24ec19b6b316e42a73ac92db8982e550c6917f8.tar.xz
Save panel coordinates also if panel is expanded
This will save panel position if the user disable expand Closes #32 (https://github.com/mate-desktop/mate-panel/issues/32)
-rw-r--r--mate-panel/panel-profile.c60
1 files changed, 29 insertions, 31 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c
index 7d9ac072..7b157b67 100644
--- a/mate-panel/panel-profile.c
+++ b/mate-panel/panel-profile.c
@@ -594,37 +594,35 @@ panel_profile_queue_toplevel_location_change (PanelToplevel *toplevel,
"orientation",
change->orientation);
- if (!panel_toplevel_get_expand (toplevel)) {
- if (change->x_changed)
- g_settings_set_int (toplevel->queued_settings,
- "x",
- change->x);
-
- if (change->x_right_changed)
- g_settings_set_int (toplevel->queued_settings,
- "x-right",
- change->x_right);
-
- if (change->x_centered_changed)
- g_settings_set_boolean (toplevel->queued_settings,
- "x-centered",
- change->x_centered);
-
- if (change->y_changed)
- g_settings_set_int (toplevel->queued_settings,
- "y",
- change->y);
-
- if (change->y_bottom_changed)
- g_settings_set_int (toplevel->queued_settings,
- "y-bottom",
- change->y_bottom);
-
- if (change->y_centered_changed)
- g_settings_set_boolean (toplevel->queued_settings,
- "y-centered",
- change->y_centered);
- }
+ if (change->x_changed)
+ g_settings_set_int (toplevel->queued_settings,
+ "x",
+ change->x);
+
+ if (change->x_right_changed)
+ g_settings_set_int (toplevel->queued_settings,
+ "x-right",
+ change->x_right);
+
+ if (change->x_centered_changed)
+ g_settings_set_boolean (toplevel->queued_settings,
+ "x-centered",
+ change->x_centered);
+
+ if (change->y_changed)
+ g_settings_set_int (toplevel->queued_settings,
+ "y",
+ change->y);
+
+ if (change->y_bottom_changed)
+ g_settings_set_int (toplevel->queued_settings,
+ "y-bottom",
+ change->y_bottom);
+
+ if (change->y_centered_changed)
+ g_settings_set_boolean (toplevel->queued_settings,
+ "y-centered",
+ change->y_centered);
commit_timeout = panel_profile_get_commit_timeout (G_OBJECT (toplevel));
if (!commit_timeout) {