[gimp] app: don't use GLIB_CHECK_VERSION (2, 39, 90) for win32 argv parsing
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't use GLIB_CHECK_VERSION (2, 39, 90) for win32 argv parsing
- Date: Tue, 12 Aug 2014 13:38:48 +0000 (UTC)
commit 4d15f219a73aefb7a68f979b9ea68a113761b8f6
Author: Michael Natterer <mitch gimp org>
Date: Tue Aug 12 15:37:46 2014 +0200
app: don't use GLIB_CHECK_VERSION (2, 39, 90) for win32 argv parsing
Instead, use the new APIs unconditionally.
app/main.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/app/main.c b/app/main.c
index c8fa6f6..2038657 100644
--- a/app/main.c
+++ b/app/main.c
@@ -338,15 +338,11 @@ main (int argc,
g_set_application_name (GIMP_NAME);
-#if GLIB_CHECK_VERSION (2, 39, 90)
#ifdef G_OS_WIN32
argv = g_win32_get_command_line ();
#else
argv = g_strdupv (argv);
#endif
-#else
- argv = g_strdupv (argv);
-#endif
basename = g_path_get_basename (argv[0]);
g_set_prgname (basename);
@@ -403,11 +399,7 @@ main (int argc,
app_libs_init (context, no_interface);
-#if GLIB_CHECK_VERSION (2, 39, 90)
if (! g_option_context_parse_strv (context, &argv, &error))
-#else
- if (! g_option_context_parse (context, &argc, &argv, &error))
-#endif
{
if (error)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]