gimp/app/dialogs
Michael Natterer 321913dd6d Allow to "Open as Layers" in the empty display:
2008-10-05  Michael Natterer  <mitch@gimp.org>

	Allow to "Open as Layers" in the empty display:

	* app/widgets/gimpfiledialog.[ch]: add member
	"gboolean open_as_layers". Rename gimp_file_dialog_set_image() to
	gimp_file_dialog_set_save_image() and add
	gimp_file_dialog_set_open_image() which sets both the image to
	load layers into and the "open_as_layers" boolean.

	* app/dialogs/file-open-dialog.c (file_open_dialog_response): look
	at dialog->open_as_layers instead of dialog->image to decide whether
	to open as layers (that's much more obvious). Enable open as layers
	without existing image by creating the image if it doesn't exist.

	* app/actions/file-commands.c (file_open_dialog_show): add "title"
	parameter and take the uri from the image if none was passed. Use the
	new gimp_file_dialog_set_open_image() instead of poking into the
	dialog struct. Change callers to pass the title and not get the
	uri from the image; instead always pass the image.

	* app/actions/file-actions.c (file_actions_update): keep
	"Open as Layers" sensitive even without image.


svn path=/trunk/; revision=27135
2008-10-05 15:21:02 +00:00
..
Makefile.am Add Desaturate as an image-map tool with live preview (bug #533808): 2008-05-21 13:11:06 +00:00
about-dialog.c put translator comment on a single line, looks better in the .po file. 2008-09-20 21:30:48 +00:00
about-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
authors.xsl restored alphabetic order. Use real name instead of a nick. 2008-09-08 10:48:16 +00:00
channel-options-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/palette-import-dialog.c 2008-06-29 13:41:24 +00:00
channel-options-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
convert-dialog.c app/core/gimpimage-merge.[ch] added GError parameters. 2007-12-06 19:51:02 +00:00
convert-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
dialogs-constructors.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
dialogs-constructors.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
dialogs-types.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
dialogs.c Bug 554125 – Tab key doesn't hide utility windows when there is no 2008-09-29 15:42:56 +00:00
dialogs.h Implement the presistent menu of recently closed docks, still somewhat 2008-05-16 16:06:42 +00:00
fade-dialog.c revert change below. 2007-10-21 19:00:28 +00:00
fade-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
file-open-dialog.c Allow to "Open as Layers" in the empty display: 2008-10-05 15:21:02 +00:00
file-open-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
file-open-location-dialog.c Allow other applications to open images in GIMP as if they were new images 2007-04-17 15:54:01 +00:00
file-open-location-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
file-save-dialog.c fix crash (don't dereference dialog after it has been destroyed). Also put 2008-05-17 14:07:25 +00:00
file-save-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
grid-dialog.c app/actions/image-commands.c app/actions/select-commands.c 2007-12-26 17:33:41 +00:00
grid-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
image-merge-layers-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/convert-dialog.c 2007-05-23 20:08:27 +00:00
image-merge-layers-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
image-new-dialog.c Bug 546924 – "New Image" misscalculating dimensions for non-pixel sized 2008-09-30 16:06:24 +00:00
image-new-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
image-properties-dialog.c app/widgets/Makefile.am app/widgets/widgets-types.h new widget derived 2007-06-27 09:46:00 +00:00
image-properties-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
image-scale-dialog.c also hide the dialog from image_scale_confirm_response() 2008-08-25 11:57:22 +00:00
image-scale-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
keyboard-shortcuts-dialog.c app/widgets/Makefile.am app/widgets/widgets-types.h new simple widget 2008-09-05 10:37:06 +00:00
keyboard-shortcuts-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
layer-add-mask-dialog.c added new methods gimp_container_get_{first,last}_child(). 2008-04-09 09:50:29 +00:00
layer-add-mask-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
layer-options-dialog.c libgimpwidgets/gimpwidgets.c 2008-08-26 19:32:14 +00:00
layer-options-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
makefile.msc updated include <string.h> for memcmp() include <string.h> for strcmp() 2008-10-03 19:27:54 +00:00
module-dialog.c tell the user that a restart is needed for the changes to take effect. 2008-05-30 11:51:39 +00:00
module-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
offset-dialog.c libgimpwidgets/gimpwidgets.c 2008-08-26 19:32:14 +00:00
offset-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
palette-import-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/palette-import-dialog.c 2008-06-29 13:41:24 +00:00
palette-import-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
preferences-dialog.c app/core/gimpitem.c app/core/gimpobject.c app/dialogs/preferences-dialog.c 2008-08-12 14:45:59 +00:00
preferences-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
print-size-dialog.c app/actions/channels-commands.c app/actions/colormap-actions.c 2007-12-25 16:21:40 +00:00
print-size-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
quit-dialog.c added new function gimp_display_close() which decides if 2008-04-05 20:32:24 +00:00
quit-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
resize-dialog.c libgimpwidgets/gimpwidgets.c 2008-08-26 19:32:14 +00:00
resize-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
resolution-calibrate-dialog.c libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h 2008-08-29 10:25:29 +00:00
resolution-calibrate-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
scale-dialog.c use the term "layer masks". 2007-06-21 08:03:36 +00:00
scale-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
stroke-dialog.c added boolean property 'emulate-brush-dynamics', in preparation for bug 2008-07-21 15:45:53 +00:00
stroke-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
template-options-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/convert-dialog.c 2007-05-23 20:08:27 +00:00
template-options-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
tips-dialog.c removed trailing whitespace 2008-09-04 08:37:32 +00:00
tips-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
tips-parser.c Applied a slightly modified patch from Róman Joost as attached to bug 2008-08-04 13:56:07 +00:00
tips-parser.h Applied a slightly modified patch from Róman Joost as attached to bug 2008-08-04 13:56:07 +00:00
user-install-dialog.c app/widgets/gimpactionview.c specify alternative button order for message 2007-10-09 08:04:31 +00:00
user-install-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
vectors-export-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/convert-dialog.c 2007-05-23 20:08:27 +00:00
vectors-export-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
vectors-import-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/convert-dialog.c 2007-05-23 20:08:27 +00:00
vectors-import-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
vectors-options-dialog.c app/dialogs/channel-options-dialog.c app/dialogs/convert-dialog.c 2007-05-23 20:08:27 +00:00
vectors-options-dialog.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00