[gtk/wip/baedert/for-master: 30/34] 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: 30/34] filechoosererrorstack: Set a layout manager
- Date: Thu, 20 Feb 2020 09:25:17 +0000 (UTC)
commit b58f9e2aa21bcb7a136820e67deee0917d9146df
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]