aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/gossip-contact-list-view.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-06-07 04:20:50 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-06-07 04:20:50 +0800
commita3a321f7e30e09c0adce157d3894642bad32e42c (patch)
treedfd9d8951bdec45d00025c9f5d09f9a68a7f5204 /libempathy-gtk/gossip-contact-list-view.c
parent51f7f13d735f8db9ead25711641f2974c18b2737 (diff)
downloadgsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.gz
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.bz2
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.lz
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.xz
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.tar.zst
gsoc2013-empathy-a3a321f7e30e09c0adce157d3894642bad32e42c.zip
Implement editing and viewing contact information with right click on the
2007-06-06 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-dialogs.glade: * libempathy-gtk/empathy-contact-widget.glade: * libempathy-gtk/empathy-status-icon.c: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-contact-dialogs.h: * libempathy-gtk/gossip-ui-utils.c: * libempathy-gtk/empathy-subscription-dialog.glade: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/gossip-ui-utils.h: * libempathy-gtk/gossip-contact-list-view.c: * libempathy-gtk/empathy-subscription-dialog.c: * libempathy-gtk/Makefile.am: * libempathy-gtk/empathy-subscription-dialog.h: Implement editing and viewing contact information with right click on the roster. svn path=/trunk/; revision=128
Diffstat (limited to 'libempathy-gtk/gossip-contact-list-view.c')
-rw-r--r--libempathy-gtk/gossip-contact-list-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/gossip-contact-list-view.c b/libempathy-gtk/gossip-contact-list-view.c
index b81ccfd40..b3c00a33b 100644
--- a/libempathy-gtk/gossip-contact-list-view.c
+++ b/libempathy-gtk/gossip-contact-list-view.c
@@ -47,9 +47,8 @@
#include "gossip-cell-renderer-expander.h"
#include "gossip-cell-renderer-text.h"
#include "gossip-ui-utils.h"
+#include "empathy-contact-dialogs.h"
//#include "gossip-chat-invite.h"
-//#include "gossip-contact-info-dialog.h"
-//#include "gossip-edit-contact-dialog.h"
//#include "gossip-ft-window.h"
//#include "gossip-log-window.h"
@@ -1452,6 +1451,7 @@ contact_list_view_action_cb (GtkAction *action,
GossipContact *contact;
const gchar *name;
gchar *group;
+ GtkWindow *parent;
priv = GET_PRIV (view);
@@ -1464,15 +1464,19 @@ contact_list_view_action_cb (GtkAction *action,
contact = gossip_contact_list_view_get_selected (view);
group = gossip_contact_list_view_get_selected_group (view);
+ parent = gossip_get_toplevel_window (GTK_WIDGET (view));
if (contact && strcmp (name, "Chat") == 0) {
contact_list_view_action_activated (view, contact);
}
else if (contact && strcmp (name, "Information") == 0) {
+ empathy_contact_information_dialog_show (contact, parent, FALSE);
}
else if (contact && strcmp (name, "Edit") == 0) {
+ empathy_contact_information_dialog_show (contact, parent, TRUE);
}
else if (contact && strcmp (name, "Remove") == 0) {
+ /* FIXME: Ask for confirmation */
EmpathyContactList *list;
list = gossip_contact_list_store_get_list_iface (priv->store);