aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-dialogs.c
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-02-24 13:56:26 +0800
committerDavyd Madeley <davyd@madeley.id.au>2009-07-15 18:12:15 +0800
commit4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8 (patch)
treede5ca58d032564d53e41c81ab4c1e6684fac2803 /libempathy-gtk/empathy-contact-dialogs.c
parentfac3f031d33d41237ec86e810ffad81cd63c6ec3 (diff)
downloadgsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.gz
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.bz2
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.lz
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.xz
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.tar.zst
gsoc2013-empathy-4e13ee5ecdbeb71559b76ee2080c9e58385c3ad8.zip
Hook up the callback to throw up the standard Add Contact dialog
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index 0155f610e..5636714b0 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -370,6 +370,13 @@ new_contact_response_cb (GtkDialog *dialog,
void
empathy_new_contact_dialog_show (GtkWindow *parent)
{
+ empathy_new_contact_dialog_show_with_contact (parent, NULL);
+}
+
+void
+empathy_new_contact_dialog_show_with_contact (GtkWindow *parent,
+ EmpathyContact *contact)
+{
GtkWidget *dialog;
GtkWidget *button;
GtkWidget *contact_widget;
@@ -402,7 +409,7 @@ empathy_new_contact_dialog_show (GtkWindow *parent)
gtk_widget_show (button);
/* Contact info widget */
- contact_widget = empathy_contact_widget_new (NULL,
+ contact_widget = empathy_contact_widget_new (contact,
EMPATHY_CONTACT_WIDGET_EDIT_ALIAS |
EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT |
EMPATHY_CONTACT_WIDGET_EDIT_ID |