[gimp] Bug 731446 - Files opened twice via command line
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 731446 - Files opened twice via command line
- Date: Fri, 5 Sep 2014 23:07:49 +0000 (UTC)
commit 97d6629d6646ad25606b0f8f158f5a6878d3c696
Author: su-v <suv-sf users sf net>
Date: Fri Sep 5 23:18:13 2014 +0200
Bug 731446 - Files opened twice via command line
Prevent Cocoa command line argument parsing for files, using
same fix as in Gedit commit 86e7dd7b72fc35c6d9b19a75bbc715aee19304b4
app/gui/gui.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/gui/gui.c b/app/gui/gui.c
index fc2f848..4699370 100644
--- a/app/gui/gui.c
+++ b/app/gui/gui.c
@@ -79,6 +79,7 @@
#include "splash.h"
#include "themes.h"
#ifdef GDK_WINDOWING_QUARTZ
+#import <AppKit/AppKit.h>
#include <gtkosxapplication.h>
#endif /* GDK_WINDOWING_QUARTZ */
@@ -529,6 +530,9 @@ gui_restore_after_callback (Gimp *gimp,
GtkWidget *menu;
GtkWidget *item;
+ [[NSUserDefaults standardUserDefaults] setObject:@"NO"
+ forKey:@"NSTreatUnknownArgumentsAsOpen"];
+
osx_app = gtkosx_application_get ();
menu = gtk_ui_manager_get_widget (GTK_UI_MANAGER (image_ui_manager),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]