[empathy] libempathy-gtk/empathy-presence-chooser.c: use tp_g_signal_connect_object instead of empathy_signal_
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] libempathy-gtk/empathy-presence-chooser.c: use tp_g_signal_connect_object instead of empathy_signal_
- Date: Fri, 9 Apr 2010 11:43:56 +0000 (UTC)
commit b57f4e748f8f631d56786d0c4856ab74bdfc5ff5
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon Mar 22 14:34:38 2010 +0100
libempathy-gtk/empathy-presence-chooser.c: use tp_g_signal_connect_object instead of empathy_signal_connect_weak
libempathy-gtk/empathy-presence-chooser.c | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c
index 7e2e89f..11634b2 100644
--- a/libempathy-gtk/empathy-presence-chooser.c
+++ b/libempathy-gtk/empathy-presence-chooser.c
@@ -856,9 +856,9 @@ empathy_presence_chooser_init (EmpathyPresenceChooser *chooser)
/* Create the not-favorite icon */
priv->not_favorite_pixbuf = create_not_favorite_pixbuf ();
- empathy_signal_connect_weak (gtk_icon_theme_get_default (), "changed",
+ tp_g_signal_connect_object (gtk_icon_theme_get_default (), "changed",
G_CALLBACK (icon_theme_changed_cb),
- G_OBJECT (chooser));
+ chooser, 0);
presence_chooser_create_model (chooser);
@@ -921,28 +921,28 @@ empathy_presence_chooser_init (EmpathyPresenceChooser *chooser)
G_CALLBACK (presence_chooser_presence_changed_cb),
chooser);
- empathy_signal_connect_weak (priv->account_manager, "account-validity-changed",
+ tp_g_signal_connect_object (priv->account_manager, "account-validity-changed",
G_CALLBACK (presence_chooser_account_manager_account_validity_changed_cb),
- G_OBJECT (chooser));
- empathy_signal_connect_weak (priv->account_manager, "account-removed",
+ chooser, 0);
+ tp_g_signal_connect_object (priv->account_manager, "account-removed",
G_CALLBACK (presence_chooser_account_manager_account_changed_cb),
- G_OBJECT (chooser));
- empathy_signal_connect_weak (priv->account_manager, "account-enabled",
+ chooser, 0);
+ tp_g_signal_connect_object (priv->account_manager, "account-enabled",
G_CALLBACK (presence_chooser_account_manager_account_changed_cb),
- G_OBJECT (chooser));
- empathy_signal_connect_weak (priv->account_manager, "account-disabled",
+ chooser, 0);
+ tp_g_signal_connect_object (priv->account_manager, "account-disabled",
G_CALLBACK (presence_chooser_account_manager_account_changed_cb),
- G_OBJECT (chooser));
+ chooser, 0);
/* FIXME: this string sucks */
gtk_widget_set_tooltip_text (GTK_WIDGET (chooser),
_("Set your presence and current status"));
priv->connectivity = empathy_connectivity_dup_singleton ();
- empathy_signal_connect_weak (priv->connectivity,
+ tp_g_signal_connect_object (priv->connectivity,
"state-change",
G_CALLBACK (presence_chooser_connectivity_state_change),
- G_OBJECT (chooser));
+ chooser, 0);
presence_chooser_update_sensitivity (chooser);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]