diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-25 21:08:56 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-26 17:15:39 +0800 |
commit | 13d6036bb4dd8adb673bd82a591fe1bbc449ca96 (patch) | |
tree | f29810162b2c34fe2923b885577302565235ca76 /libempathy-gtk | |
parent | e5342c2b0a781f5ba46060bf56829fb6d308663d (diff) | |
download | gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.tar gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.tar.gz gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.tar.bz2 gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.tar.lz gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.tar.xz gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.tar.zst gsoc2013-empathy-13d6036bb4dd8adb673bd82a591fe1bbc449ca96.zip |
don't display 'Send file' menu item in empathy-chat
We only support requesting FT channel in the same process as the FT handler.
https://bugzilla.gnome.org/show_bug.cgi?id=678331
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 20 | ||||
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.h | 1 |
2 files changed, 14 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index dffc657e8..bd02325c3 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -229,10 +229,13 @@ individual_menu_add_personas (GtkMenuShell *menu, gtk_widget_show (action); /* File transfer */ - action = empathy_individual_file_transfer_menu_item_new ( - single_individual); - gtk_menu_shell_append (GTK_MENU_SHELL (contact_submenu), action); - gtk_widget_show (action); + if (features & EMPATHY_INDIVIDUAL_FEATURE_FILE_TRANSFER) + { + action = empathy_individual_file_transfer_menu_item_new ( + single_individual); + gtk_menu_shell_append (GTK_MENU_SHELL (contact_submenu), action); + gtk_widget_show (action); + } /* Share my desktop */ action = empathy_individual_share_my_desktop_menu_item_new ( @@ -940,9 +943,12 @@ constructed (GObject *object) gtk_widget_show (item); /* File transfer */ - item = empathy_individual_file_transfer_menu_item_new (individual); - gtk_menu_shell_append (shell, item); - gtk_widget_show (item); + if (features & EMPATHY_INDIVIDUAL_FEATURE_FILE_TRANSFER) + { + item = empathy_individual_file_transfer_menu_item_new (individual); + 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-individual-menu.h b/libempathy-gtk/empathy-individual-menu.h index 332433f89..41e289f91 100644 --- a/libempathy-gtk/empathy-individual-menu.h +++ b/libempathy-gtk/empathy-individual-menu.h @@ -42,6 +42,7 @@ typedef enum { EMPATHY_INDIVIDUAL_FEATURE_ADD_CONTACT = 1 << 8, EMPATHY_INDIVIDUAL_FEATURE_BLOCK = 1 << 9, EMPATHY_INDIVIDUAL_FEATURE_REMOVE = 1 << 10, + EMPATHY_INDIVIDUAL_FEATURE_FILE_TRANSFER = 1 << 11, } EmpathyIndividualFeatureFlags; #define EMPATHY_TYPE_INDIVIDUAL_MENU (empathy_individual_menu_get_type ()) |