From e9647ab2bdf4836dfadb23d72ba9d3a7cc25134e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 16 Mar 2024 20:52:35 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 6 +++--- src/Builder4/Editor.vala | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index b4626a1a3..ebaacc3b2 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -959,9 +959,9 @@ " expand.set_hide_expander( sym.children.get_n_items() < 1);", " \texpand.set_list_row(lr);", " \t", - " \t//node.bind_property(\"iconResourceName\",", - " // img, \"resource\",", - " // GLib.BindingFlags.SYNC_CREATE);", + " \tsym.bind_property(\"symbol_icon\",", + " img, \"icon_name\",", + " GLib.BindingFlags.SYNC_CREATE);", " \t", " \tsym.bind_property(\"name\",", " lbl, \"label\",", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index 5fe943443..246a92a47 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -1776,7 +1776,7 @@ public class Editor : Object var child_2 = new Xcls_ColumnViewColumn29( _this ); child_2.ref(); this.el.append_column( child_2.el ); - var child_3 = new Xcls_GestureClick252( _this ); + var child_3 = new Xcls_GestureClick34( _this ); child_3.ref(); this.el.add_controller( child_3.el ); } @@ -1926,9 +1926,9 @@ public class Editor : Object expand.set_hide_expander( sym.children.get_n_items() < 1); expand.set_list_row(lr); - //node.bind_property("iconResourceName", - // img, "resource", - // GLib.BindingFlags.SYNC_CREATE); + sym.bind_property("symbol_icon", + img, "icon_name", + GLib.BindingFlags.SYNC_CREATE); sym.bind_property("name", lbl, "label", @@ -2032,7 +2032,7 @@ public class Editor : Object - public class Xcls_GestureClick252 : Object + public class Xcls_GestureClick34 : Object { public Gtk.GestureClick el; private Editor _this; @@ -2041,7 +2041,7 @@ public class Editor : Object // my vars (def) // ctor - public Xcls_GestureClick252(Editor _owner ) + public Xcls_GestureClick34(Editor _owner ) { _this = _owner; this.el = new Gtk.GestureClick(); -- 2.39.2