[Xfce4-commits] <xfce4-panel:devel> Always save the position of new windows.

Nick Schermer nick at xfce.org
Tue Aug 11 20:36:05 CEST 2009


Updating branch refs/heads/devel
         to 7bb20e84d10aab6e086ced1da12439d240b0d004 (commit)
       from b226745fda7f81d89ca1b6dbf99778fc7212b710 (commit)

commit 7bb20e84d10aab6e086ced1da12439d240b0d004
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Aug 5 10:09:32 2009 +0200

    Always save the position of new windows.

 panel/panel-application.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/panel/panel-application.c b/panel/panel-application.c
index a254a1d..7d69b47 100644
--- a/panel/panel-application.c
+++ b/panel/panel-application.c
@@ -1040,7 +1040,7 @@ panel_application_save (PanelApplication *application,
       /* create property name */
       g_snprintf (buf, sizeof (buf), "/panels/panel-%u/plugins", i);
 
-      /* only cleanup and continue if there are not children */
+      /* only cleanup and continue if there are no children */
       if (G_UNLIKELY (children == NULL))
         {
           xfconf_channel_reset_property (channel, buf, FALSE);
@@ -1242,6 +1242,11 @@ panel_application_new_window (PanelApplication *application,
   /* add the xfconf bindings */
   panel_application_xfconf_window_bindings (application, PANEL_WINDOW (window), FALSE);
 
+  /* make sure the position of the panel is always saved else
+   * the new window won't be visible on restart */
+  if (new_window)
+    g_object_notify (G_OBJECT (window), "position");
+
   return PANEL_WINDOW (window);
 }
 



More information about the Xfce4-commits mailing list