[gnome-games] remove version checks that are already guaranteed to be met



commit 3fcd92611e2bae706f1292db4cccf356d2132ca5
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date:   Thu Dec 2 23:00:14 2010 +0100

    remove version checks that are already guaranteed to be met

 gnobots2/gnobots.c    |    3 ---
 gnomine/gnomine.c     |    2 --
 gnotravex/gnotravex.c |    6 ------
 3 files changed, 0 insertions(+), 11 deletions(-)
---
diff --git a/gnobots2/gnobots.c b/gnobots2/gnobots.c
index 4693da1..5301e18 100644
--- a/gnobots2/gnobots.c
+++ b/gnobots2/gnobots.c
@@ -218,10 +218,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/gnomine/gnomine.c b/gnomine/gnomine.c
index 2b6ef65..4b05454 100644
--- a/gnomine/gnomine.c
+++ b/gnomine/gnomine.c
@@ -947,9 +947,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/gnotravex/gnotravex.c b/gnotravex/gnotravex.c
index 82eb7ea..2bbc341 100644
--- a/gnotravex/gnotravex.c
+++ b/gnotravex/gnotravex.c
@@ -1588,11 +1588,7 @@ about_cb (GtkAction * action, gpointer data)
   gchar *license = games_get_license (_(APPNAME_LONG));
 
   gtk_show_about_dialog (GTK_WINDOW (window),
-#if GTK_CHECK_VERSION (2, 11, 0)
                          "program-name", _(APPNAME_LONG),
-#else
-                         "name", _(APPNAME_LONG),
-#endif
                          "version", VERSION,
                          "comments",
                          _("GNOME Tetravex is a simple puzzle where "
@@ -1798,9 +1794,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 /* GLIB_CHECK_VERSION (2, 12, 0) */
   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]