diff options
author | Travis Reitter <treitter@gmail.com> | 2010-06-22 23:43:18 +0800 |
---|---|---|
committer | Travis Reitter <treitter@gmail.com> | 2010-07-21 07:12:35 +0800 |
commit | ae79986102a22b65a3f9f4eb2328971272eec204 (patch) | |
tree | 7a119f5fb1b9546b7f7e6ac21798893581feaf68 /libempathy-gtk/empathy-individual-menu.c | |
parent | 315a71325f98d86722d7c313d726828f767cef82 (diff) | |
download | gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.tar gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.tar.gz gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.tar.bz2 gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.tar.lz gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.tar.xz gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.tar.zst gsoc2013-empathy-ae79986102a22b65a3f9f4eb2328971272eec204.zip |
Support contact adding
Diffstat (limited to 'libempathy-gtk/empathy-individual-menu.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index c618d2c37..09309dbf9 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -40,6 +40,7 @@ #include "empathy-images.h" #include "empathy-log-window.h" #include "empathy-contact-dialogs.h" +#include "empathy-individual-dialogs.h" #include "empathy-ui-utils.h" #include "empathy-share-my-desktop.h" @@ -160,18 +161,13 @@ empathy_individual_add_menu_item_activated (GtkMenuItem *item, FolksIndividual *individual) { GtkWidget *toplevel; - EmpathyContact *contact; toplevel = gtk_widget_get_toplevel (GTK_WIDGET (item)); if (!gtk_widget_is_toplevel (toplevel) || !GTK_IS_WINDOW (toplevel)) toplevel = NULL; - contact = empathy_contact_from_folks_individual (individual); - empathy_new_contact_dialog_show_with_contact (GTK_WINDOW (toplevel), - contact); - - if (contact != NULL) - g_object_unref (contact); + empathy_new_individual_dialog_show_with_individual (GTK_WINDOW (toplevel), + individual); } GtkWidget * |