[gnome-color-manager] trivial: Set up the window modality in the GtkBuilder file not the C file



commit 97d2e9265ba0cfb0b0b08e557fae354f473452b0
Author: Richard Hughes <richard hughsie com>
Date:   Wed May 26 16:10:24 2010 +0100

    trivial: Set up the window modality in the GtkBuilder file not the C file

 data/gcm-prefs.ui |    8 ++++++--
 src/gcm-prefs.c   |    5 +----
 2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/data/gcm-prefs.ui b/data/gcm-prefs.ui
index 5b71c65..b5fd419 100644
--- a/data/gcm-prefs.ui
+++ b/data/gcm-prefs.ui
@@ -1763,12 +1763,16 @@
   </object>
   <object class="GtkDialog" id="dialog_virtual">
     <property name="border_width">5</property>
-    <property name="title" translatable="yes">Add Virtual Device</property>
+    <property name="title"> </property>
     <property name="resizable">False</property>
     <property name="modal">True</property>
     <property name="window_position">center-on-parent</property>
     <property name="destroy_with_parent">True</property>
-    <property name="type_hint">normal</property>
+    <property name="icon_name">gnome-color-manager</property>
+    <property name="type_hint">dialog</property>
+    <property name="skip_taskbar_hint">True</property>
+    <property name="skip_pager_hint">True</property>
+    <property name="transient_for">dialog_prefs</property>
     <property name="has_separator">False</property>
     <child internal-child="vbox">
       <object class="GtkVBox" id="dialog-vbox2">
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 0e1d104..83b972c 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -2953,11 +2953,8 @@ main (int argc, char **argv)
 	widget = GTK_WIDGET (gtk_builder_get_object (builder, "hbox_serial"));
 	gtk_widget_hide (widget);
 
-	/* set up virtual device */
+	/* set up virtual dialog */
 	widget = GTK_WIDGET (gtk_builder_get_object (builder, "dialog_virtual"));
-	gtk_window_set_icon_name (GTK_WINDOW (widget), GCM_STOCK_ICON);
-	gtk_window_set_transient_for (GTK_WINDOW (widget), GTK_WINDOW (main_window));
-	gtk_window_set_modal (GTK_WINDOW (widget), TRUE);
 	g_signal_connect (widget, "delete-event",
 			  G_CALLBACK (gcm_prefs_virtual_delete_event_cb), NULL);
 	g_signal_connect (widget, "drag-data-received",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]