[Xfce4-commits] <xfce4-panel:devel> Set transient windows for the launcher in glade.

Nick Schermer nick at xfce.org
Tue Aug 11 20:28:02 CEST 2009


Updating branch refs/heads/devel
         to cc0809b38a4c65332928d81a77cf5c9c492de72c (commit)
       from 1eaaebd054c039293c4e33b09806509cfbc5de96 (commit)

commit cc0809b38a4c65332928d81a77cf5c9c492de72c
Author: Nick Schermer <nick at xfce.org>
Date:   Thu Feb 19 21:20:34 2009 +0100

    Set transient windows for the launcher in glade.
    
    Makes it more obvious the windows belong the the launcher
    properties dialog. Model should be even better, but that
    leaves the panel inaccessible... Will fix this later.

 plugins/launcher/launcher-dialog.c     |    4 ++--
 plugins/launcher/launcher-dialog.glade |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/plugins/launcher/launcher-dialog.c b/plugins/launcher/launcher-dialog.c
index 9db1543..8d228c7 100644
--- a/plugins/launcher/launcher-dialog.c
+++ b/plugins/launcher/launcher-dialog.c
@@ -176,7 +176,7 @@ launcher_dialog_add_populate_model_idle (gpointer user_data)
   
   /* initialize the menu library */
   xfce_menu_init (NULL);
-  
+
   /* load our menu file */
   menu = xfce_menu_new (SYSCONFDIR "/xdg/menus/launcher.menu", &error);
   if (G_UNLIKELY (menu != NULL))
@@ -188,7 +188,7 @@ launcher_dialog_add_populate_model_idle (gpointer user_data)
       xfce_menu_item_pool_foreach (xfce_menu_get_item_pool (menu),
                                    launcher_dialog_add_store_insert,
                                    store);
-          
+
       /* release the menu */
       g_object_unref (G_OBJECT (menu));
     }
diff --git a/plugins/launcher/launcher-dialog.glade b/plugins/launcher/launcher-dialog.glade
index fcfcf36..b1ffac5 100644
--- a/plugins/launcher/launcher-dialog.glade
+++ b/plugins/launcher/launcher-dialog.glade
@@ -56,6 +56,7 @@
   </object>
   <object class="XfceTitledDialog" id="dialog">
     <property name="title" translatable="yes">Launcher Properties</property>
+    <property name="window_position">center</property>
     <property name="default_width">350</property>
     <property name="default_height">400</property>
     <property name="icon_name">gtk-properties</property>
@@ -322,7 +323,6 @@
                     <child>
                       <object class="GtkComboBox" id="arrow-position">
                         <property name="visible">True</property>
-                        <property name="model">arrow-position-store</property>
                         <property name="active">0</property>
                         <property name="button_sensitivity">on</property>
                         <child>
@@ -412,6 +412,7 @@
     <property name="destroy_with_parent">True</property>
     <property name="icon_name">applications-other</property>
     <property name="type_hint">normal</property>
+    <property name="transient_for">dialog</property>
     <property name="has_separator">False</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="dialog-vbox3">
@@ -699,6 +700,7 @@
     <property name="destroy_with_parent">True</property>
     <property name="icon_name">gtk-add</property>
     <property name="type_hint">normal</property>
+    <property name="transient_for">dialog</property>
     <property name="has_separator">False</property>
     <property name="subtitle" translatable="yes">Add one or more existing items to the launcher</property>
     <child internal-child="vbox">



More information about the Xfce4-commits mailing list