Commit 296a06ca authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

home: Use template_callback to bind osk btn signals



This is less code
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 417f1cfb
......@@ -296,12 +296,6 @@ phosh_home_constructed (GObject *object)
{
PhoshHome *self = PHOSH_HOME (object);
g_signal_connect_object (self->btn_home,
"clicked",
G_CALLBACK (home_clicked_cb),
self,
G_CONNECT_SWAPPED);
g_signal_connect (self,
"configured",
G_CALLBACK (phosh_home_resize),
......@@ -391,6 +385,7 @@ phosh_home_class_init (PhoshHomeClass *klass)
gtk_widget_class_bind_template_child (widget_class, PhoshHome, btn_osk);
gtk_widget_class_bind_template_child (widget_class, PhoshHome, overview);
gtk_widget_class_bind_template_callback (widget_class, fold_cb);
gtk_widget_class_bind_template_callback (widget_class, home_clicked_cb);
gtk_widget_class_bind_template_callback (widget_class, osk_clicked_cb);
gtk_widget_class_set_css_name (widget_class, "phosh-home");
......
......@@ -28,6 +28,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="hexpand">True</property>
<signal name="clicked" handler="home_clicked_cb" swapped="true"/>
<child>
<object class="PhoshArrow" id="arrow_home">
<property name="visible">True</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment