aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-01-31 01:34:49 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:34:49 +0800
commite16d37dd3d789edb49d69ca87dc807a703be454b (patch)
tree3333acd3f4647e627d7016e8aabcf3bfdbb9dd55
parentc0c10affc5a017649df2ebcc2930741ed0256225 (diff)
downloadgsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.tar
gsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.tar.gz
gsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.tar.bz2
gsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.tar.lz
gsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.tar.xz
gsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.tar.zst
gsoc2013-empathy-e16d37dd3d789edb49d69ca87dc807a703be454b.zip
Remove unnecessary casts and macros.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2339
-rw-r--r--libempathy-gtk/empathy-contact-selector.c23
1 files changed, 9 insertions, 14 deletions
diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c
index 22221dd88..7b55b5142 100644
--- a/libempathy-gtk/empathy-contact-selector.c
+++ b/libempathy-gtk/empathy-contact-selector.c
@@ -46,7 +46,8 @@ typedef struct
EmpathyContactListStore *store;
} EmpathyContactSelectorPriv;
-static void contact_selector_changed_cb (GtkComboBox *widget, gpointer data);
+static void contact_selector_changed_cb (
+ EmpathyContactSelector *selector, gpointer data);
EmpathyContact *
empathy_contact_selector_get_selected (EmpathyContactSelector *selector)
@@ -195,25 +196,21 @@ contact_selector_manage_blank_contact (EmpathyContactSelector *selector)
}
}
- contact_selector_manage_sensitivity (selector);
+ contact_selector_manage_sensitivity (selector);
}
static void
-contact_selector_notify_popup_shown_cb (GtkComboBox *widget,
+contact_selector_notify_popup_shown_cb (EmpathyContactSelector *selector,
GParamSpec *property,
gpointer data)
{
- EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (widget);
-
contact_selector_manage_blank_contact (selector);
}
static void
-contact_selector_changed_cb (GtkComboBox *widget,
+contact_selector_changed_cb (EmpathyContactSelector *selector,
gpointer data)
{
- EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (widget);
-
contact_selector_manage_blank_contact (selector);
}
@@ -221,10 +218,8 @@ static void
contact_selector_store_row_changed_cb (EmpathyContactListStore *empathy_store,
GtkTreePath *empathy_path,
GtkTreeIter *empathy_iter,
- gpointer data)
+ EmpathyContactSelector *selector)
{
- EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (data);
-
contact_selector_manage_sensitivity (selector);
}
@@ -247,10 +242,10 @@ contact_selector_constructor (GType type,
g_signal_connect (priv->store, "row-changed",
G_CALLBACK (contact_selector_store_row_changed_cb),
- (gpointer) contact_selector);
- g_signal_connect (GTK_COMBO_BOX (contact_selector), "changed",
+ contact_selector);
+ g_signal_connect (contact_selector, "changed",
G_CALLBACK (contact_selector_changed_cb), NULL);
- g_signal_connect (GTK_COMBO_BOX (contact_selector), "notify::popup-shown",
+ g_signal_connect (contact_selector, "notify::popup-shown",
G_CALLBACK (contact_selector_notify_popup_shown_cb), NULL);
gtk_combo_box_set_model (GTK_COMBO_BOX (contact_selector),