Gimp/app
Michael Natterer cee3baea0f First draft of the "no image open" window, which is implemented as a
2008-03-18  Michael Natterer  <mitch@gimp.org>

	First draft of the "no image open" window, which is implemented as
	a display without image (a view with NULL model). Didn't change
	the display's appearance yet so I can first make sure the display
	without image works properly in all details before hiding these
	details.

	* app/core/gimp-gui.[ch]: add "gimp" parameter to display_create()
	and allow "image" to be NULL.

	* app/core/gimpcontext.c (gimp_context_real_set_display): a
	display's image can be NULL now.

	* app/display/gimpdisplay.[ch]: add Gimp and GimpDisplayConfig
	members.  Add Gimp parameter to gimp_display_shell_new(). Changed
	gimp_display_reconnect() to gimp_display_set_image() and allow to
	set a NULL image.

	* app/gui/gui-vtable.c (gui_display_create): if there is a single
	display without an image, call gimp_display_set_image() on that
	display instead of creating a new one.

	* app/display/gimpdisplayshell-close.c: if the last display is
	closed, don't close it but make it empty. Factored out that code
	to gimp_display_shell_really_close().

	* app/display/gimpdisplayshell-dnd.c: when dropping uris on an
	empty display, open the first one into that display and the other
	ones as layers of the newly opened image. This is consistent with
	dropping on an existing image but maybe needs some discussion.

	* app/display/gimpdisplayshell-callbacks.c: bail out early in the
	tool event callback so tools never have to deal with empty
	displays. In expose(), draw the drop zone on the empty display.

	* app/display/gimpdisplayshell-title.c: set the empty display's
	title to "Gimp - Drop Files".

	* app/display/gimpdisplay-foreach.c
	* app/display/gimpdisplay-handlers.c
	* app/display/gimpdisplayshell-appearance.c
	* app/display/gimpdisplayshell-autoscroll.c
	* app/display/gimpdisplayshell-callbacks.c
	* app/display/gimpdisplayshell-cursor.c
	* app/display/gimpdisplayshell-dnd.c
	* app/display/gimpdisplayshell-draw.c
	* app/display/gimpdisplayshell-filter-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/display/gimpdisplayshell-layer-select.c
	* app/display/gimpdisplayshell-preview.c
	* app/display/gimpdisplayshell-render.c
	* app/display/gimpdisplayshell-scale.c
	* app/display/gimpdisplayshell-scroll.c
	* app/display/gimpdisplayshell-selection.c
	* app/display/gimpdisplayshell-title.c
	* app/display/gimpdisplayshell.c
	* app/display/gimpnavigationeditor.c
	* app/display/gimpstatusbar.c: use display->gimp and
	display->config instead of going via the image. Guard against
	empty displays in some few places (most places can't be
	called). Where needed, use the canvas' dimensions instead of the
	image's dimensions so scroll offsets and scrollbars still have
	sane values instead of the last image's ones.

	* app/actions/actions.c (action_data_get_gimp)
	(action_data_get_context): use display->gimp instead of
	display->image->gimp.

	* app/actions/edit-commands.c (edit_paste_cmd_callback): redirect
	to "paste as new" if there is an empty display.

	* app/actions/tools-commands.c (tools_select_cmd_callback): don't
	initialize the new tool on an empty display.

	* app/actions/view-actions.c (view_actions_update): changed lots
	of sensitivity settings to be insensitive when there is no image
	(instead of no display).

	* app/actions/view-commands.c: use the display's config object
	instead of gimp's.


svn path=/trunk/; revision=25113
2008-03-18 21:22:21 +00:00
..
actions First draft of the "no image open" window, which is implemented as a 2008-03-18 21:22:21 +00:00
base add get_pid() which returns getpid(). 2008-02-07 13:19:15 +00:00
composite updated and removed -GD to let msvc9 complain less 2007-12-09 14:11:09 +00:00
config changed default web-browser to xdg-open. Fixes bug #522483. 2008-03-18 16:10:19 +00:00
core First draft of the "no image open" window, which is implemented as a 2008-03-18 21:22:21 +00:00
dialogs app/actions/data-commands.c app/actions/debug-commands.c 2008-03-12 16:58:28 +00:00
display First draft of the "no image open" window, which is implemented as a 2008-03-18 21:22:21 +00:00
file removed "add_alpha" parameter from gimp_item_duplicate() and 2008-01-08 11:46:15 +00:00
gegl get rid of fixed-size arrays and allocate the points and curve arrays 2008-02-28 12:34:46 +00:00
gui First draft of the "no image open" window, which is implemented as a 2008-03-18 21:22:21 +00:00
menus updated and removed -GD to let msvc9 complain less 2007-12-09 14:11:09 +00:00
paint formatting. 2008-03-10 14:34:26 +00:00
paint-funcs sprinkled with const qualifiers. 2007-12-18 14:51:55 +00:00
pdb add gimp_pdb_get_vectors_stroke() which is a replacement for 2008-03-06 18:39:07 +00:00
plug-in add get_pid() which returns getpid(). 2008-02-07 13:19:15 +00:00
text check if the font has the glyphs from the sample string. Fixes bug 2008-02-14 13:13:47 +00:00
tools app/actions/data-commands.c app/actions/debug-commands.c 2008-03-12 16:58:28 +00:00
vectors use g_slice_dup() instead of copying the struct contents manually. 2008-03-10 14:25:47 +00:00
widgets app/actions/data-commands.c app/actions/debug-commands.c 2008-03-12 16:58:28 +00:00
xcf app/actions/image-commands.c app/actions/select-commands.c 2007-12-26 17:33:41 +00:00
about.h updated copyright. 2008-01-24 17:07:51 +00:00
app.c app/app.c app/batch.c app/core/gimp.c use G_STRLOC instead of hardcoding 2008-02-19 13:38:24 +00:00
app.h Allow other applications to open images in GIMP as if they were new images 2007-04-17 15:54:01 +00:00
batch.c app/app.c app/batch.c app/core/gimp.c use G_STRLOC instead of hardcoding 2008-02-19 13:38:24 +00:00
batch.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
errors.c added errors_exit() and unset the Gimp reference. Errors may occur after 2007-06-13 09:27:32 +00:00
errors.h added errors_exit() and unset the Gimp reference. Errors may occur after 2007-06-13 09:27:32 +00:00
fileicon.ico fileicon.ico new icons for the Windows build created by Jernej 2006-05-02 06:37:08 +00:00
gimp-intl.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
gimp-log.c renamed log domain TOOLS to TOOL_EVENTS and added domain TOOL_FOCUS. 2007-12-07 18:52:41 +00:00
gimp-log.h code cleanup. 2007-12-13 13:20:42 +00:00
gimp.rc
gimpcore.def **/makefile.msc app/gimpcore.def : updated so it compiles and links 2008-01-04 18:42:07 +00:00
main.c New files. Rename gimp_show_version() to gimp_version_show() and move 2008-02-26 14:02:44 +00:00
Makefile.am don't assume that global AM_LDFLAGS and per-target LD_FLAGS would sum up 2008-02-26 21:20:48 +00:00
makefile.msc **/makefile.msc app/gimpcore.def : updated so it compiles and links 2008-01-04 18:42:07 +00:00
sanity.c app/sanity.c minor cleanup. 2008-01-23 12:22:09 +00:00
sanity.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
units.c In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
units.h In all files, changed the standard copyright notice to say "GIMP - The GNU 2006-12-09 21:33:38 +00:00
version.c made the library version information easier to translate. 2008-02-26 15:50:07 +00:00
version.h New files. Rename gimp_show_version() to gimp_version_show() and move 2008-02-26 14:02:44 +00:00
wilber.ico fileicon.ico new icons for the Windows build created by Jernej 2006-05-02 06:37:08 +00:00