[gtksourceview/wip/chergert/gsv-gtk4: 186/192] styleschemechooser: fix layout of listbox child




commit b626be8959c7a622d56da487091b038ab7513a12
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 25 12:43:08 2020 -0700

    styleschemechooser: fix layout of listbox child

 gtksourceview/gtksourcestyleschemechooserwidget.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gtksourceview/gtksourcestyleschemechooserwidget.c 
b/gtksourceview/gtksourcestyleschemechooserwidget.c
index 10807efc0..a85068e99 100644
--- a/gtksourceview/gtksourcestyleschemechooserwidget.c
+++ b/gtksourceview/gtksourcestyleschemechooserwidget.c
@@ -125,6 +125,7 @@ gtk_source_style_scheme_chooser_widget_class_init (GtkSourceStyleSchemeChooserWi
        object_class->get_property = gtk_source_style_scheme_chooser_widget_get_property;
        object_class->set_property = gtk_source_style_scheme_chooser_widget_set_property;
 
+       gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BIN_LAYOUT);
        gtk_widget_class_set_template_from_resource (widget_class,
                                                     
"/org/gnome/gtksourceview/ui/gtksourcestyleschemechooserwidget.ui");
        gtk_widget_class_bind_template_child_private (widget_class, GtkSourceStyleSchemeChooserWidget, 
list_box);


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