[gtk/wip/baedert/for-master: 54/57] filechoosererrorstack: Set a layout manager
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 54/57] filechoosererrorstack: Set a layout manager
- Date: Wed, 19 Feb 2020 17:17:41 +0000 (UTC)
commit fb657f148527ca5c267242f253dd54d1b2f4e645
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]