aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-27 00:44:38 +0800
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>2009-05-28 00:52:08 +0800
commit3b1bbb17b9d082a2e19571e0328394c99c35bcf7 (patch)
treea25fd9e86c01594b9cb4f718d9a324c46cd90a13 /src
parent2d38908c639e7fbc6b90daf395919987e3d0c844 (diff)
downloadgsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.tar
gsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.tar.gz
gsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.tar.bz2
gsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.tar.lz
gsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.tar.xz
gsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.tar.zst
gsoc2013-empathy-3b1bbb17b9d082a2e19571e0328394c99c35bcf7.zip
Simplify the #if by isolating the content
Diffstat (limited to 'src')
-rw-r--r--src/empathy-main-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 9d26137d9..d2cb832f2 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -715,14 +715,14 @@ main_window_view_show_offline_cb (GtkToggleAction *action,
//empathy_sound_set_enabled (TRUE);
}
-#if HAVE_LIBCHAMPLAIN
static void
main_window_view_show_map_cb (GtkCheckMenuItem *item,
EmpathyMainWindow *window)
{
+#if HAVE_LIBCHAMPLAIN
empathy_map_view_show ();
-}
#endif
+}
static void
main_window_favorite_chatroom_join (EmpathyChatroom *chatroom)
@@ -1151,9 +1151,7 @@ empathy_main_window_show (void)
"chat_add_contact", "activate", main_window_chat_add_contact_cb,
"view_show_ft_manager", "activate", main_window_view_show_ft_manager,
"view_show_offline", "toggled", main_window_view_show_offline_cb,
-#if HAVE_LIBCHAMPLAIN
"view_show_map", "activate", main_window_view_show_map_cb,
-#endif
"edit", "activate", main_window_edit_cb,
"edit_accounts", "activate", main_window_edit_accounts_cb,
"edit_personal_information", "activate", main_window_edit_personal_information_cb,