[gnac/devel] Code cleanup



commit 9d212060ffff383da6dadde45fec1f9f6a3f2b82
Author: Benoît Dupasquier <bdupasqu src gnome org>
Date:   Thu Sep 9 21:34:07 2010 +0100

    Code cleanup

 src/gnac-ui.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gnac-ui.c b/src/gnac-ui.c
index a428b05..0b86442 100644
--- a/src/gnac-ui.c
+++ b/src/gnac-ui.c
@@ -853,10 +853,10 @@ gnac_ui_init_notify(void)
 }
 
 
-#ifdef HAVE_LIBUNIQUE
 static void
 gnac_ui_init_unique(void)
 {
+#ifdef HAVE_LIBUNIQUE
   /* We only want a single instance of gnac to be running */
   app = unique_app_new_with_commands("org.gnome.Gnac", NULL,
       "add-files", UNIQUE_CMD_ADD,
@@ -915,17 +915,15 @@ gnac_ui_init_unique(void)
 
     exit(response == UNIQUE_RESPONSE_OK);
   }
-}
 #endif /* HAVE_LIBUNIQUE */
+}
 
 
 void
 gnac_ui_init(void)
 {
   gnac_ui_init_notify();
-#ifdef HAVE_LIBUNIQUE
   gnac_ui_init_unique();
-#endif /* HAVE_LIBUNIQUE */
 }
 
 



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