Commit e62dbb9c authored by Guido Gunther's avatar Guido Gunther
Browse files

feedback-manager: Make 'connect_feedback' specific to buttons

Those have 'clicked' and 'released' signals.
parent 3a4812cc
Pipeline #55840 passed with stages
in 17 minutes and 10 seconds
...@@ -218,7 +218,7 @@ phosh_trigger_feedback (const char *name) ...@@ -218,7 +218,7 @@ phosh_trigger_feedback (const char *name)
* for haptic feedback. * for haptic feedback.
*/ */
void void
phosh_connect_feedback (GtkWidget *button) phosh_connect_button_feedback (GtkButton *button)
{ {
g_signal_connect (button, g_signal_connect (button,
"pressed", "pressed",
......
...@@ -23,4 +23,4 @@ const gchar* phosh_feedback_manager_get_icon_name (PhoshFeedbackManager ...@@ -23,4 +23,4 @@ const gchar* phosh_feedback_manager_get_icon_name (PhoshFeedbackManager
const gchar* phosh_feedback_manager_get_profile (PhoshFeedbackManager *self); const gchar* phosh_feedback_manager_get_profile (PhoshFeedbackManager *self);
void phosh_feedback_manager_trigger_feedback (PhoshFeedbackManager *self, const char *event); void phosh_feedback_manager_trigger_feedback (PhoshFeedbackManager *self, const char *event);
void phosh_trigger_feedback (const char *name); void phosh_trigger_feedback (const char *name);
void phosh_connect_feedback (GtkWidget *button); void phosh_connect_button_feedback (GtkButton *button);
...@@ -216,7 +216,7 @@ phosh_home_constructed (GObject *object) ...@@ -216,7 +216,7 @@ phosh_home_constructed (GObject *object)
G_CALLBACK (key_press_event_cb), G_CALLBACK (key_press_event_cb),
NULL); NULL);
phosh_connect_feedback (GTK_WIDGET (self->btn_home)); phosh_connect_button_feedback (GTK_BUTTON (self->btn_home));
G_OBJECT_CLASS (phosh_home_parent_class)->constructed (object); G_OBJECT_CLASS (phosh_home_parent_class)->constructed (object);
} }
......
...@@ -156,7 +156,7 @@ add_activity (PhoshOverview *self, PhoshToplevel *toplevel) ...@@ -156,7 +156,7 @@ add_activity (PhoshOverview *self, PhoshToplevel *toplevel)
g_signal_connect_object (toplevel, "closed", G_CALLBACK (on_toplevel_closed), activity, 0); g_signal_connect_object (toplevel, "closed", G_CALLBACK (on_toplevel_closed), activity, 0);
g_signal_connect_object (toplevel, "notify::activated", G_CALLBACK (on_toplevel_activated_changed), self, 0); g_signal_connect_object (toplevel, "notify::activated", G_CALLBACK (on_toplevel_activated_changed), self, 0);
phosh_connect_feedback (GTK_WIDGET (activity)); phosh_connect_button_feedback (GTK_BUTTON (activity));
if (phosh_toplevel_is_activated (toplevel)) if (phosh_toplevel_is_activated (toplevel))
hdy_paginator_scroll_to (HDY_PAGINATOR (priv->paginator_running_activities), activity); hdy_paginator_scroll_to (HDY_PAGINATOR (priv->paginator_running_activities), activity);
......
...@@ -260,7 +260,7 @@ phosh_panel_constructed (GObject *object) ...@@ -260,7 +260,7 @@ phosh_panel_constructed (GObject *object)
self, self,
G_CONNECT_SWAPPED); G_CONNECT_SWAPPED);
phosh_connect_feedback (GTK_WIDGET (priv->btn_top_panel)); phosh_connect_button_feedback (GTK_BUTTON (priv->btn_top_panel));
gtk_window_set_title (GTK_WINDOW (self), "phosh panel"); gtk_window_set_title (GTK_WINDOW (self), "phosh panel");
gtk_style_context_add_class ( gtk_style_context_add_class (
......
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