[gtk+] GtkDialog: fix invisible action area



commit 10892863d5dcfabbcb0578d23e6d4334f672f630
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jul 2 00:33:46 2014 -0400

    GtkDialog: fix invisible action area
    
    When there area explicitly added buttons in the action area,
    we were trying to ensure that the action area is visible,
    but failed, since we are now hiding the action_box. Fix it
    by showing the action_box when things are left in the action
    area.

 gtk/gtkdialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c
index c668a49..48d6426 100644
--- a/gtk/gtkdialog.c
+++ b/gtk/gtkdialog.c
@@ -274,7 +274,7 @@ add_cb (GtkContainer *container,
   if (priv->use_header_bar)
     g_warning ("Content added to the action area of a dialog using header bars");
 
-  gtk_widget_show (GTK_WIDGET (container));
+  gtk_widget_show (GTK_WIDGET (priv->action_box));
 }
 
 static void


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