diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-26 02:04:09 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-27 18:54:50 +0800 |
commit | a0d79de6f5151ee14b25364060e5dd2338f800a9 (patch) | |
tree | 872b7101219888466a0ba7b5c5c5faed69dd098c /libempathy-gtk | |
parent | b4a1d5606e68916a99ca672818bcbebb5c2a8ee0 (diff) | |
download | gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.tar gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.tar.gz gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.tar.bz2 gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.tar.lz gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.tar.xz gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.tar.zst gsoc2013-empathy-a0d79de6f5151ee14b25364060e5dd2338f800a9.zip |
Desensitise the "Linkā¦" menu entry for untrusted Individuals
This prevents the linking dialogue from being opened for local-xmpp contacts,
who cannot be trusted.
This bumps Empathy's dependency on libfolks to 0.1.15. Helps: bgo#627930
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index 99dea7382..549e026e0 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -832,6 +832,11 @@ empathy_individual_link_menu_item_new (FolksIndividual *individual) gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), image); gtk_widget_show (image);*/ + /* Only allow trusted Individuals to be linked */ + gtk_widget_set_sensitive (item, + folks_individual_get_trust_level (individual) == + FOLKS_TRUST_LEVEL_PERSONAS); + g_signal_connect_swapped (item, "activate", G_CALLBACK (individual_link_menu_item_activate_cb), individual); |