forked from AuroraMiddleware/gtk
filechoosererrorstack: Set a layout manager
Otherwise it doesn't know what to do with its child widget.
This commit is contained in:
parent
b8a752c751
commit
b58f9e2aa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user