[gnome-games] gtk3 implies glib v2.27 so these checks are not needed



commit a713c713a99b1d092922c8e124c9887784ea627e
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Wed Nov 10 23:29:40 2010 +0100

    gtk3 implies glib v2.27 so these checks are not needed

 glines/glines.c   |    3 ---
 gnibbles/main.c   |    5 +----
 gnotski/gnotski.c |    2 --
 iagno/gnothello.c |    2 --
 4 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index 90db0a2..98c5e44 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -1738,10 +1738,7 @@ main (int argc, char *argv[])
   rgen = g_rand_new ();
 
   context = g_option_context_new (NULL);
-#if GLIB_CHECK_VERSION (2, 12, 0)
   g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
-#endif
-
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
 #ifdef WITH_SMCLIENT
   g_option_context_add_group (context, egg_sm_client_get_option_group ());
diff --git a/gnibbles/main.c b/gnibbles/main.c
index 04a604b..90669fa 100644
--- a/gnibbles/main.c
+++ b/gnibbles/main.c
@@ -1003,12 +1003,9 @@ main (int argc, char **argv)
 #endif
 
   gtk_clutter_init (&argc, &argv);
-  context = g_option_context_new (NULL);
 
-#if GLIB_CHECK_VERSION (2, 12, 0)
+  context = g_option_context_new (NULL);
   g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
-#endif
-
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
 
   retval = g_option_context_parse (context, &argc, &argv, &error);
diff --git a/gnotski/gnotski.c b/gnotski/gnotski.c
index ee5c573..59ce5e1 100644
--- a/gnotski/gnotski.c
+++ b/gnotski/gnotski.c
@@ -483,9 +483,7 @@ main (int argc, char **argv)
 #endif
 
   context = g_option_context_new (NULL);
-#if GLIB_CHECK_VERSION (2, 12, 0)
   g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
-#endif
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
 #ifdef WITH_SMCLIENT
   g_option_context_add_group (context, egg_sm_client_get_option_group ());
diff --git a/iagno/gnothello.c b/iagno/gnothello.c
index ce7a585..84c1b76 100644
--- a/iagno/gnothello.c
+++ b/iagno/gnothello.c
@@ -983,9 +983,7 @@ main (int argc, char **argv)
     return 1;
 
   context = g_option_context_new (NULL);
-#if GLIB_CHECK_VERSION (2, 12, 0)
   g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
-#endif
   g_option_context_add_group (context, gtk_get_option_group (TRUE));
 #ifdef WITH_SMCLIENT
   g_option_context_add_group (context, egg_sm_client_get_option_group ());



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