diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-01-25 17:03:33 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-01-25 17:03:33 +0800 |
commit | cfaa4c875c382545b06162854c286d1b5b3f0497 (patch) | |
tree | 3b2db7ee5177ec848ff41287286235b96b3772b0 /libempathy-gtk | |
parent | 8b4a09ed7450b0b3d806d0996d174f911e4c3352 (diff) | |
download | gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.tar gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.tar.gz gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.tar.bz2 gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.tar.lz gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.tar.xz gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.tar.zst gsoc2013-empathy-cfaa4c875c382545b06162854c286d1b5b3f0497.zip |
add EMPATHY_CONTACT_FEATURE_FT
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 1 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-menu.c | 8 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-menu.h | 3 |
3 files changed, 8 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 4b3bcb427..bc2f08e2d 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -3281,6 +3281,7 @@ empathy_chat_get_contact_menu (EmpathyChat *chat) menu = empathy_contact_menu_new (priv->remote_contact, EMPATHY_CONTACT_FEATURE_CALL | EMPATHY_CONTACT_FEATURE_LOG | + EMPATHY_CONTACT_FEATURE_FT | EMPATHY_CONTACT_FEATURE_INFO); } diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c index c7fd19b09..00d83ce5b 100644 --- a/libempathy-gtk/empathy-contact-menu.c +++ b/libempathy-gtk/empathy-contact-menu.c @@ -97,9 +97,11 @@ empathy_contact_menu_new (EmpathyContact *contact, gtk_widget_show (item); /* File transfer */ - item = empathy_contact_file_transfer_menu_item_new (contact); - gtk_menu_shell_append (shell, item); - gtk_widget_show (item); + if (features & EMPATHY_CONTACT_FEATURE_FT) { + item = empathy_contact_file_transfer_menu_item_new (contact); + gtk_menu_shell_append (shell, item); + gtk_widget_show (item); + } /* Share my desktop */ /* FIXME we should add the "Share my desktop" menu item if Vino is diff --git a/libempathy-gtk/empathy-contact-menu.h b/libempathy-gtk/empathy-contact-menu.h index 4c6d62f9d..2e0247420 100644 --- a/libempathy-gtk/empathy-contact-menu.h +++ b/libempathy-gtk/empathy-contact-menu.h @@ -36,7 +36,8 @@ typedef enum { EMPATHY_CONTACT_FEATURE_EDIT = 1 << 3, EMPATHY_CONTACT_FEATURE_INFO = 1 << 4, EMPATHY_CONTACT_FEATURE_FAVOURITE = 1 << 5, - EMPATHY_CONTACT_FEATURE_ALL = (1 << 6) - 1, + EMPATHY_CONTACT_FEATURE_FT = 1 << 6, + EMPATHY_CONTACT_FEATURE_ALL = (1 << 7) - 1, } EmpathyContactFeatureFlags; GtkWidget * empathy_contact_menu_new (EmpathyContact *contact, |