Commit 7111329a authored by Guido Gunther's avatar Guido Gunther
Browse files

PhoshPanel: Make signal handlers consistent

Signed-off-by: Guido Gunther's avatarGuido Günther <>
parent 512db35b
......@@ -57,13 +57,16 @@ top_panel_clicked_cb (PhoshPanel *self, GtkButton *btn)
static void
wall_clock_notify_cb (GnomeWallClock *wall_clock,
GParamSpec *pspec,
PhoshPanel *self)
wall_clock_notify_cb (PhoshPanel *self,
GParamSpec *pspec,
GnomeWallClock *wall_clock)
PhoshPanelPrivate *priv = phosh_panel_get_instance_private (self);
const gchar *str;
g_return_if_fail (PHOSH_IS_PANEL (self));
g_return_if_fail (GNOME_IS_WALL_CLOCK (wall_clock));
str = gnome_wall_clock_get_clock(wall_clock);
gtk_label_set_text (GTK_LABEL (priv->lbl_clock), str);
......@@ -88,10 +91,11 @@ phosh_panel_constructed (GObject *object)
priv->wall_clock = gnome_wall_clock_new ();
g_signal_connect (priv->wall_clock,
G_CALLBACK (wall_clock_notify_cb),
g_signal_connect_object (priv->wall_clock,
G_CALLBACK (wall_clock_notify_cb),
g_signal_connect_object (priv->btn_top_panel,
......@@ -114,7 +118,7 @@ phosh_panel_constructed (GObject *object)
gtk_style_context_remove_class (gtk_widget_get_style_context (priv->btn_top_panel),
wall_clock_notify_cb (priv->wall_clock, NULL, self);
wall_clock_notify_cb (self, NULL, priv->wall_clock);
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