[gnome-bluetooth] settings: Fix visibility of some widgets in pairing dialogue



commit b629ded808352f43a20558d55b6e98db1a8e9ace
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 11 18:23:55 2013 +0100

    settings: Fix visibility of some widgets in pairing dialogue
    
    The buttonbox and the "Done" dialogue should not be shown when
    using show_all.

 lib/bluetooth-pairing-dialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index ee83019..b64d40a 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -245,6 +245,7 @@ bluetooth_pairing_dialog_init (BluetoothPairingDialog *self)
        priv->header = gtk_header_bar_new ();
        gtk_header_bar_set_custom_title (GTK_HEADER_BAR (priv->header), gtk_label_new (""));
        priv->done = gtk_button_new_with_label (_("Accept"));
+       gtk_widget_set_no_show_all (priv->done, TRUE);
        gtk_widget_set_can_default (GTK_WIDGET (priv->done), TRUE);
        g_signal_connect (G_OBJECT (priv->done), "clicked",
                          G_CALLBACK (response_cb), self);
@@ -265,7 +266,7 @@ bluetooth_pairing_dialog_init (BluetoothPairingDialog *self)
                          G_CALLBACK (text_changed_cb), self);
        priv->pin_notebook = WID ("pin_notebook");
        gtk_widget_hide (buttonbox);
-       gtk_widget_set_no_show_all (buttonbox, FALSE);
+       gtk_widget_set_no_show_all (buttonbox, TRUE);
 
        context = gtk_widget_get_style_context (priv->done);
        gtk_style_context_add_class (context, "suggested-action");


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