Commit cdf2cd17 authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

home: Use template_callback to bind clicked signal



This is less code
Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 8b99954e
......@@ -302,12 +302,6 @@ phosh_home_constructed (GObject *object)
self,
G_CONNECT_SWAPPED);
g_signal_connect_object (self->btn_osk,
"clicked",
G_CALLBACK (osk_clicked_cb),
self,
G_CONNECT_SWAPPED);
g_signal_connect_swapped (self->overview,
"activity-launched",
G_CALLBACK(fold_cb),
......@@ -409,6 +403,7 @@ phosh_home_class_init (PhoshHomeClass *klass)
gtk_widget_class_bind_template_child (widget_class, PhoshHome, arrow_home);
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, osk_clicked_cb);
gtk_widget_class_set_css_name (widget_class, "phosh-home");
}
......
......@@ -54,6 +54,7 @@
<property name="valign">center</property>
<property name="margin_right">6</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="osk_clicked_cb" swapped="true"/>
<style>
<class name="phosh-osk-button"/>
</style>
......
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