gui: give the toolbox a name

This commit is contained in:
Peter Hutterer 2019-07-19 11:08:54 +10:00
parent 68e533ec5f
commit 66130b9b8b
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@
<property name="margin_right">20</property> <property name="margin_right">20</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<child> <child>
<object class="GtkBox"> <object class="GtkBox" id="box_toolbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="margin_right">10</property> <property name="margin_right">10</property>

View File

@ -42,6 +42,7 @@ def relative_date(timestamp):
class Drawing(Gtk.Box): class Drawing(Gtk.Box):
__gtype_name__ = "Drawing" __gtype_name__ = "Drawing"
box_toolbar = Gtk.Template.Child()
label_timestamp = Gtk.Template.Child() label_timestamp = Gtk.Template.Child()
image_svg = Gtk.Template.Child() image_svg = Gtk.Template.Child()
btn_rotate_left = Gtk.Template.Child() btn_rotate_left = Gtk.Template.Child()