[gtk/wip/baedert/for-master] filechoosererrorstack: Set a layout manager



commit 18d5b118a74e784e0c0641688b78e89146495c20
Author: Timm Bäder <mail baedert org>
Date:   Wed Feb 19 08:11:05 2020 +0100

    filechoosererrorstack: Set a layout manager
    
    Otherwise it doesn't know what to do with its child widget.

 gtk/gtkfilechoosererrorstack.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gtk/gtkfilechoosererrorstack.c b/gtk/gtkfilechoosererrorstack.c
index f15615c2b3..39e18c0002 100644
--- a/gtk/gtkfilechoosererrorstack.c
+++ b/gtk/gtkfilechoosererrorstack.c
@@ -16,6 +16,7 @@
 #include "gtkstack.h"
 #include "gtklabel.h"
 #include "gtkintl.h"
+#include "gtkbinlayout.h"
 
 G_DEFINE_TYPE (GtkFileChooserErrorStack, gtk_file_chooser_error_stack, GTK_TYPE_WIDGET)
 
@@ -33,8 +34,11 @@ static void
 gtk_file_chooser_error_stack_class_init (GtkFileChooserErrorStackClass *class)
 {
   GObjectClass *object_class = G_OBJECT_CLASS (class);
+  GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (class);
 
   object_class->finalize = gtk_file_chooser_error_stack_finalize;
+
+  gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
 }
 
 static void


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