[gnome-control-center] network: Show the network dialogues after showing the shell



commit aceaf347a93f3a8dd2a53a9a8457c6d53a1c5100
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Oct 1 23:05:41 2012 +0200

    network: Show the network dialogues after showing the shell
    
    To avoid confusing the hell out of Mutter, we should show the
    parented dialogue _after_ showing the parent itself.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=684927

 panels/network/network-dialogs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/network/network-dialogs.c b/panels/network/network-dialogs.c
index 3fab0e5..6934035 100644
--- a/panels/network/network-dialogs.c
+++ b/panels/network/network-dialogs.c
@@ -233,7 +233,9 @@ show_wireless_dialog (CcNetworkPanel   *panel,
                                G_CALLBACK (wireless_dialog_response_cb),
                                closure, wireless_dialog_closure_closure_notify, 0);
 
-        gtk_widget_show (dialog);
+        g_object_bind_property (G_OBJECT (toplevel), "visible",
+                                G_OBJECT (dialog), "visible",
+                                G_BINDING_SYNC_CREATE);
 }
 
 void



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