[gimp/gimp-2-6] app: fix goption warning



commit 51f42ab9d9bd89c5c0ad81f9c96caa49098493c2
Author: Mikael Magnusson <mikachu src gnome org>
Date:   Wed Mar 9 15:35:52 2011 +0100

    app: fix goption warning
    
    Using G_OPTION_FLAG_NO_ARG with G_OPTION_ARG_NONE is not a valid combination,
    glib 2.28.2 warns about it.
    
    (gimp:20379): GLib-WARNING **: goption.c:2132: ignoring no-arg, optional-arg or filename flags (8) on option "debug-handlers" of type 0
    (cherry picked from commit b81276ca83e6ec4c7df32c8f611f441d1dfc59ad)

 app/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/main.c b/app/main.c
index e1d5f02..34c9f74 100644
--- a/app/main.c
+++ b/app/main.c
@@ -240,7 +240,7 @@ static const GOptionEntry main_entries[] =
     N_("Debug in case of a crash (never|query|always)"), "<mode>"
   },
   {
-    "debug-handlers", 0, G_OPTION_FLAG_NO_ARG,
+    "debug-handlers", 0, 0,
     G_OPTION_ARG_NONE, &use_debug_handler,
     N_("Enable non-fatal debugging signal handlers"), NULL
   },



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