[dia] Stop complaints about group named 'gtk'
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Stop complaints about group named 'gtk'
- Date: Sat, 14 Aug 2010 18:43:19 +0000 (UTC)
commit 4bb946877f8db2ec87c20d0f77ee02e84f7519de
Author: Hans Breuer <hans breuer org>
Date: Sat Aug 14 19:52:00 2010 +0200
Stop complaints about group named 'gtk'
The GNOME build was adding the gtk option context group twice.
Once as a side-effect of gnome_program_init() and once explicit.
Remove the latter when building with GNOME.
app/app_procs.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/app/app_procs.c b/app/app_procs.c
index 7e85ad4..afa19c8 100644
--- a/app/app_procs.c
+++ b/app/app_procs.c
@@ -756,8 +756,10 @@ app_init (int argc, char **argv)
context = g_option_context_new(_("[FILE...]"));
g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
+#ifndef HAVE_GNOME
+ /* avoid to add it a second time */
g_option_context_add_group (context, gtk_get_option_group (FALSE));
-
+#endif
if (argv) {
GError *error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]