aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat-window.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-10-01 19:09:39 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-10-01 19:09:39 +0800
commit6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4 (patch)
treebe52165c9ebfb2d6b864354c61e82a39bbcb5446 /libempathy-gtk/empathy-chat-window.c
parent3940c10bd761e85d24b317affb22c8d899e9ff8b (diff)
downloadgsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.tar
gsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.tar.gz
gsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.tar.bz2
gsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.tar.lz
gsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.tar.xz
gsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.tar.zst
gsoc2013-empathy-6430bd3bbf43d0c2d0da05c54a39936a22ecf2a4.zip
Hide VOIP stuff if empathy is not compiled with --enable-voip=yes. Fixes
2007-10-01 Xavier Claessens <xclaesse@gmail.com> * libempathy-gtk/empathy-contact-list-view.c: * libempathy-gtk/empathy-chat-window.c: Hide VOIP stuff if empathy is not compiled with --enable-voip=yes. Fixes bug #482111 (Sjoerd Simons, Xavier Claessens). svn path=/trunk/; revision=344
Diffstat (limited to 'libempathy-gtk/empathy-chat-window.c')
-rw-r--r--libempathy-gtk/empathy-chat-window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-chat-window.c b/libempathy-gtk/empathy-chat-window.c
index 41402f252..5d5a1eafe 100644
--- a/libempathy-gtk/empathy-chat-window.c
+++ b/libempathy-gtk/empathy-chat-window.c
@@ -989,8 +989,12 @@ chat_window_conv_activate_cb (GtkWidget *menuitem,
}
gtk_widget_set_sensitive (priv->menu_conv_log, log_exists);
- g_object_set (priv->menu_conv_call, "visible", can_voip, NULL);
- g_object_set (priv->menu_conv_call_separator, "visible", can_voip, NULL);
+#ifdef HAVE_VOIP
+ gtk_widget_set_sensitive (priv->menu_conv_call, can_voip);
+#else
+ g_object_set (priv->menu_conv_call, "visible", FALSE, NULL);
+ g_object_set (priv->menu_conv_call_separator, "visible", FALSE, NULL);
+#endif
}
static void