aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-selector-dialog.h
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2009-12-19 09:42:25 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2009-12-21 17:52:47 +0800
commit4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52 (patch)
tree6a7dc8d3a7b0a0e62c527f30390be3f349a935b0 /libempathy-gtk/empathy-contact-selector-dialog.h
parentc56343b28433a6285ad3d954cb276f03e0a6d665 (diff)
downloadgsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.tar
gsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.tar.gz
gsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.tar.bz2
gsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.tar.lz
gsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.tar.xz
gsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.tar.zst
gsoc2013-empathy-4a9ec5b513a5e7c183cfcb55b1b2bcda1e5f2f52.zip
[EmpathyContactSelectorDialog] remove got_response vcall
The got_response vcall method wasn't generic enough. It assumed that your response code was always GTK_RESPONSE_ACCEPT, and doesn't allow for the dialog to be used with gtk_dialog_run. Instead dialogs now use the regular response() vcall provided by GtkDialog, and an additional API method empathy_contact_selector_dialog_get_selected() provides the information content of the dialog.
Diffstat (limited to 'libempathy-gtk/empathy-contact-selector-dialog.h')
-rw-r--r--libempathy-gtk/empathy-contact-selector-dialog.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-selector-dialog.h b/libempathy-gtk/empathy-contact-selector-dialog.h
index 255d37ee1..d8a698ab5 100644
--- a/libempathy-gtk/empathy-contact-selector-dialog.h
+++ b/libempathy-gtk/empathy-contact-selector-dialog.h
@@ -38,10 +38,6 @@ typedef struct _EmpathyContactSelectorDialogClass \
struct _EmpathyContactSelectorDialogClass {
GtkDialogClass parent_class;
- void (*got_response) (EmpathyContactSelectorDialog *self,
- TpConnection *connection,
- const gchar *contact_id);
-
gboolean (*account_filter) (EmpathyContactSelectorDialog *self,
TpAccount *account);
};
@@ -55,6 +51,9 @@ struct _EmpathyContactSelectorDialog {
};
GType empathy_contact_selector_dialog_get_type (void);
+const gchar *empathy_contact_selector_dialog_get_selected (
+ EmpathyContactSelectorDialog *self,
+ TpConnection **connection);
void empathy_contact_selector_dialog_set_show_account_chooser (
EmpathyContactSelectorDialog *self,
gboolean show_account_chooser);