[empathy] Simplify the #if by isolating the content



commit 3b1bbb17b9d082a2e19571e0328394c99c35bcf7
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date:   Tue May 26 12:44:38 2009 -0400

    Simplify the #if by isolating the content
---
 src/empathy-main-window.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 9d26137..d2cb832 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]