Commit Graph

26 Commits

Author SHA1 Message Date
luz.paz 7fdb963e01 Bug 794996 - Misc. typo fixes in comments in app/
Found via `codespell -q 3 --skip="./po*"`
2018-04-08 21:25:56 +02:00
Michael Natterer ebdb803c33 app: port GimpAppleEventHandler to GFile too, it made opening files crash 2014-07-30 21:34:27 +02:00
Michael Henning 45472ee088 app: Fix unique logic on windows 2014-07-08 12:50:50 -04:00
Michael Natterer e978c31e33 app: fix gui-unique.c for OSX and Windows (untested, not even built) 2014-07-08 10:39:50 +02:00
Michael Henning 8e42cfa171 app: Fix build for OSX too.
This was broken in 7f23fbec34
This is similar to a25defa39e
2014-05-02 22:31:16 -04:00
Michael Henning a25defa39e app: Fix build for windows.
This was broken in 7f23fbec34
2014-05-02 17:51:43 -04:00
Daniel Sabo e56344294c app: Port to gtk-mac-integration
Replace deprecated Carbon APIs with Cocoa.

Includes code by:
Simone Karin Lehmann
Michael Natterer
Daniel Sabo
2013-11-10 18:22:01 +01:00
Michael Natterer f5496f8df8 Bug 701038 - Errors when compiling for windows
Don't use #elifdef, apparently it's a gccism.
2013-05-26 17:02:20 +02:00
Michael Natterer c4460e846b Bug 622934 - Migrate from dbus-glib to glib's GDBus
Drop the glib-dbus dependency and port stuff to GDBus. Use it
unconditionally if not on Windows or OSX. It seels to work just like
before but I have no idea if everything is really correct.
2013-05-24 23:25:47 +02:00
Daniel Sabo 7d62e8370a Bug 675875 - Gimp Quartz doesn't respond to file open events from finder
Add Carbon based apple events responder for kAEOpenDocuments
2012-05-16 22:59:13 +02:00
Michael Natterer ac98c2c234 Use gimp_display_get_shell() instead of directly accessing it 2009-10-04 19:56:39 +02:00
Michael Natterer 31a41c2b3d Use gimp_display_shell_present() instead of gtk_window_present() 2009-10-04 19:27:58 +02:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann 8f425553a7 added signal Gimp::image-opened to announce that an image has been loaded
2008-10-17  Sven Neumann  <sven@sven>

	* app/core/gimp.[ch]: added signal Gimp::image-opened to 
announce
	that an image has been loaded and a display was created for it.

	* app/file/file-open.c (file_open_with_proc_and_display): call
	gimp_opened() to emit the new signal.

	* app/gui/dbus-service.xml
	* app/gui/gimpdbusservice.[ch]: propagate the 'opened' signal to
	listeners of the "org.gimp.GIMP.UI" DBus service.

	* app/gui/gui-unique.c: formatting.


svn path=/trunk/; revision=27297
2008-10-17 12:03:08 +00:00
Sven Neumann 95cd081d13 added a 'restored' flag to the Gimp object and set it in
2008-09-25  Sven Neumann  <sven@gimp.org>

	* app/core/gimp.[ch]: added a 'restored' flag to the Gimp object
	and set it in gimp_real_restore(). Added method 
gimp_is_restored().

	* app/gui/gui.c: call gui_unique_init() in gui_init() instead of
	that later in gui_restore_after_callback(). By doing so we start
	our DBus service (or message proxy window on Win32) much earlier
	in the start process, thus reducing the time frame where two
	instances of gimp can be launched.

	* app/gui/gui-unique.c
	* app/gui/gimpdbusservice.c: wait handling the queued file-open
	requests until gimp is fully restored.

	* app/gui/splash.c (splash_update): only run one iteration of 
the
	main loop. Doing it in a while loop can cause us to get stuck if
	the gimp-unique service already added an idle handler.


svn path=/trunk/; revision=27049
2008-09-25 08:56:58 +00:00
Tor Lillqvist 2a01f97b6e Untabify.
2008-09-10  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c: Untabify.


svn path=/trunk/; revision=26918
2008-09-10 20:01:45 +00:00
Tor Lillqvist 0fb8352667 Destroy the proxy window here so that gimp_unique_win32_open() in
2008-09-10  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c (gui_unique_win32_exit): Destroy the proxy
	window here so that gimp_unique_win32_open() in app/unique.c won't
	find it. This is important especially in a developer version where
	the debug output window might be left open and the proxy window
	still existing for a long time after the GTK+ main loop of the
	GIMP GUI has finished. Thanks to Michael Schumacher for pointing
	this out.

	There is still a small race window here after GIMP has begun
	closing down its GUI in gui_exit_callback() and before the proxy
	window has gone away. If another GIMP starts during that interval,
	it will find the proxy window and send it a message, which will
	then either be ignored, or the proxy window will have been
	destroyed before it gets the message. Let's ignore that. There is
	a much wider time window during which multiple GIMP instances may
	be started during GIMP startup anyway.


svn path=/trunk/; revision=26917
2008-09-10 20:00:53 +00:00
Tor Lillqvist 9950975d6b gui_unique_win32_message_handler() can be static. Include file/file-open.h
2008-09-10  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c: gui_unique_win32_message_handler() can be
	static. Include file/file-open.h for file_open_from_command_line()
	declaration. Fix copy/paste glitch in gui_unique_exit().


svn path=/trunk/; revision=26916
2008-09-10 19:25:54 +00:00
Sven Neumann f56bc8493f app/widgets/Makefile.am app/widgets/gimpdbusservice.[ch] removed here ...
2008-07-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpdbusservice.[ch]
	* app/widgets/dbus-service.xml: removed here ...

	* app/gui/Makefile.am
	* app/gui/gimpdbusservice.[ch]
	* app/gui/dbus-service.xml: ... and moved here.
	(gimp_dbus_service_activate): raise the first display instead of
	the toolbox.

	* app/gui/gui-unique.c (gui_unique_win32_idle_open): same change
	here, raise the display instead of the toolbox.

	* app/unique.c: changed accordingly.


svn path=/trunk/; revision=26184
2008-07-13 19:49:32 +00:00
Sven Neumann e6e549a2d6 app/unique.c on Win32, if the gimp binary is started without filenames,
2008-07-13  Sven Neumann  <sven@gimp.org>

	* app/unique.c
	* app/gui/gui-unique.c: on Win32, if the gimp binary is started
	without filenames, raise the toolbox, just as we do in the DBus
	code path.


svn path=/trunk/; revision=26183
2008-07-13 19:04:38 +00:00
Tor Lillqvist 5d805657c1 Fix g_slice_new() use.
2008-07-11  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c (idle_open_data_new): Fix g_slice_new()
	use.


svn path=/trunk/; revision=26133
2008-07-11 16:53:09 +00:00
Sven Neumann 48148af6c1 dispatch opening to an idle handler.
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/gui/gui-unique.c: dispatch opening to an idle handler.


svn path=/trunk/; revision=26129
2008-07-11 13:56:07 +00:00
Tor Lillqvist 0edb0e7ec6 Include <windows.h> on Windows. (gui_unique_win32_init): Drop unused
2008-07-11  Tor Lillqvist  <tml@novell.com>

	* app/gui/gui-unique.c: Include <windows.h> on Windows.
	(gui_unique_win32_init): Drop unused variable.


svn path=/trunk/; revision=26125
2008-07-11 12:40:41 +00:00
Sven Neumann c6a3b41f38 actually call gui_unique_win32_exit()
svn path=/trunk/; revision=26123
2008-07-11 11:32:50 +00:00
Sven Neumann 3ba8295b5c app/unique.c merged code from bug #410439 to provide builtin
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/unique.c
	* app/gui/gui-unique.[ch]: merged code from bug #410439 to 
provide
	builtin gimp-win-remote functionality for Win32. This is 
untested
	and most probably doesn't even compile.


svn path=/trunk/; revision=26120
2008-07-11 10:31:27 +00:00
Sven Neumann 681b788626 app/gui/Makefile.am new files providing functionality to ensure a unique
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/gui/Makefile.am
	* app/gui/gui-unique.[ch]: new files providing functionality to
	ensure a unique GUI instance of GIMP. Code split out of gui.c.

	* app/gui/gui.c: changed accordingly.


svn path=/trunk/; revision=26119
2008-07-11 09:40:09 +00:00