mirror of https://github.com/GNOME/gimp.git
app: don't use GLIB_CHECK_VERSION (2, 39, 90) for win32 argv parsing
Instead, use the new APIs unconditionally.
This commit is contained in:
parent
dae366bb6e
commit
4d15f219a7
|
@ -338,12 +338,8 @@ 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
|
||||
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue