[libpanel/wip/chergert/fix-14] save-dialog: use binding manually



commit b35a8d76a8a6d4a465a061203276d9dc9aacd597
Author: Christian Hergert <chergert redhat com>
Date:   Tue Sep 13 11:58:23 2022 -0700

    save-dialog: use binding manually
    
    Less magic here since we have to do a mapping anyway.

 src/panel-save-dialog-row.c  | 2 ++
 src/panel-save-dialog-row.ui | 5 -----
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/panel-save-dialog-row.c b/src/panel-save-dialog-row.c
index a8d0192..87ebc34 100644
--- a/src/panel-save-dialog-row.c
+++ b/src/panel-save-dialog-row.c
@@ -94,6 +94,8 @@ panel_save_dialog_row_set_delegate (PanelSaveDialogRow *self,
                                G_BINDING_SYNC_CREATE,
                                map_title_with_draft, NULL,
                                delegate, NULL);
+  g_object_bind_property (delegate, "subtitle", self, "subtitle",
+                          G_BINDING_SYNC_CREATE);
 }
 
 static void
diff --git a/src/panel-save-dialog-row.ui b/src/panel-save-dialog-row.ui
index d3eb8ab..4ee0e98 100644
--- a/src/panel-save-dialog-row.ui
+++ b/src/panel-save-dialog-row.ui
@@ -1,11 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <template class="PanelSaveDialogRow" parent="AdwActionRow">
-    <binding name="subtitle">
-      <lookup name="subtitle" type="PanelSaveDelegate">
-        <lookup name="delegate">PanelSaveDialogRow</lookup>
-      </lookup>
-    </binding>
     <child type="prefix">
       <object class="GtkCheckButton" id="check">
         <property name="active">true</property>


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