[gnome-builder] libide/tweaks: set expression explicitly for label



commit 5facca0ebad187852d622558c0c7aee78d6ad6b7
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 27 03:06:02 2022 -0700

    libide/tweaks: set expression explicitly for label

 src/libide/tweaks/ide-tweaks-combo.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/libide/tweaks/ide-tweaks-combo.c b/src/libide/tweaks/ide-tweaks-combo.c
index 6ebb31f28..e811c7709 100644
--- a/src/libide/tweaks/ide-tweaks-combo.c
+++ b/src/libide/tweaks/ide-tweaks-combo.c
@@ -108,6 +108,7 @@ ide_tweaks_combo_create_for_item (IdeTweaksWidget *instance,
 {
   IdeTweaksCombo *self = (IdeTweaksCombo *)widget;
   g_autoptr(IdeTweaksModel) model = NULL;
+  g_autoptr(GtkExpression) expression = NULL;
   g_autoptr(GVariant) variant = NULL;
   IdeTweaksBinding *binding = NULL;
   AdwComboRow *row;
@@ -141,7 +142,10 @@ ide_tweaks_combo_create_for_item (IdeTweaksWidget *instance,
                                 ide_tweaks_combo_visit_children_cb,
                                 state, visit_state_unref);
 
+  expression = gtk_property_expression_new (IDE_TYPE_TWEAKS_CHOICE, NULL, "title");
+
   row = g_object_new (IDE_TYPE_TWEAKS_COMBO_ROW,
+                      "expression", expression,
                       "title", self->title,
                       "subtitle", self->subtitle,
                       "binding", binding,


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