[Xfce4-commits] r30221 - libxfce4ui/trunk/libxfce4ui

Nick Schermer nick at xfce.org
Wed Jul 8 18:45:16 CEST 2009


Author: nick
Date: 2009-07-08 16:45:16 +0000 (Wed, 08 Jul 2009)
New Revision: 30221

Modified:
   libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
Log:
Center the dialogs on active screen if parent is NULL.


Modified: libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c
===================================================================
--- libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c	2009-07-08 08:47:01 UTC (rev 30220)
+++ libxfce4ui/trunk/libxfce4ui/xfce-dialogs.c	2009-07-08 16:45:16 UTC (rev 30221)
@@ -91,6 +91,10 @@
   if (title != NULL)
     gtk_window_set_title (GTK_WINDOW (dialog), title);
 
+  /* put the dialog on the active screen if no parent is defined */
+  if (parent == NULL)
+    xfce_gtk_window_center_on_active_screen (GTK_WINDOW (dialog));
+
   if (icon_stock_id != NULL)
     {
       /* set dialog and window icon */




More information about the Xfce4-commits mailing list