[gnome-bluetooth] pairing-dialog: Don't forget to show the title



commit b71dcf6907f8ac9519cda404198ed6c54cb8f637
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Oct 13 17:07:21 2015 +0200

    pairing-dialog: Don't forget to show the title
    
    The title was set, but not shown. The problem didn't show in the test
    application, as it did a "gtk_widget_show_all()" unlike the settings
    code which simply called "gtk_widget_show()".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756446

 lib/bluetooth-pairing-dialog.c |    1 +
 lib/test-pairing-dialog.c      |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index 27dc7fb..42ba323 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -282,6 +282,7 @@ bluetooth_pairing_dialog_constructed (GObject *object)
        header = gtk_dialog_get_header_bar (GTK_DIALOG (self));
        priv->title = gtk_label_new ("");
        gtk_header_bar_set_custom_title (GTK_HEADER_BAR (header), priv->title);
+       gtk_widget_show (priv->title);
        gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (header), FALSE);
 
        /* OK button */
diff --git a/lib/test-pairing-dialog.c b/lib/test-pairing-dialog.c
index 86a9e70..e2909fc 100644
--- a/lib/test-pairing-dialog.c
+++ b/lib/test-pairing-dialog.c
@@ -90,7 +90,7 @@ int main (int argc, char **argv)
        g_signal_connect (G_OBJECT (window), "response",
                          G_CALLBACK (response_cb), window);
 
-       gtk_widget_show_all (window);
+       gtk_widget_show (window);
 
        gtk_main ();
 


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