File 0009-WIP-command-line-args.patch of Package mingw32-evince

From 76de7da1c09abc76d44326d08d29001e19842a61 Mon Sep 17 00:00:00 2001
From: Hib Eris <hib@hiberis.nl>
Date: Mon, 26 Sep 2011 12:19:26 +0200
Subject: [PATCH 09/12] WIP command line args

This works around issues in GOption with parsing command line arguments in Windows. It requires a modified glib.

Bug #619629
Bug #522131
---
 shell/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/shell/main.c b/shell/main.c
index c1e756b..34905d4 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -283,7 +283,7 @@ main (int argc, char *argv[])
 
 	g_option_context_add_group (context, gtk_get_option_group (TRUE));
 
-	if (!g_option_context_parse (context, &argc, &argv, &error)) {
+	if (!g_option_context_parse_command_line (context, &error)) {
 		g_printerr ("Cannot parse arguments: %s\n", error->message);
 		g_error_free (error);
 		g_option_context_free (context);
-- 
1.7.5.4

openSUSE Build Service is sponsored by