gimp/app
Michael Natterer 2d5828ec2d added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI
2003-02-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpviewable.[ch]: added "gchar *stock_id" to the
	GimpViewable struct. It is used by the GUI if the get_preview()
	functions return NULL. Default to GTK_STOCK_DIALOG_QUESTION.

	* app/core/gimptoolinfo.[ch]: set the tool's stock_id. Removed
	the cached GdkPixbuf. Don't implement any preview function
	so the GUI uses the stock_id.

	* app/tools/tool_manager.c: removed GdkPixbuf creation, removed
	the #warning about the buggy way we created the pixbuf.

	* app/gui/dialogs-constructors.c
	* app/gui/image-menu.c
	* app/tools/gimpcroptool.c
	* app/tools/gimphistogramtool.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimpmeasuretool.c
	* app/tools/gimptransformtool.c
	* app/widgets/gimptoolbox.c: use viewable->stock_id instead
	of tool_info->stock_id.

	* app/core/gimpbrush.c
	* app/core/gimpgradient.c
	* app/core/gimpimagefile.c
	* app/core/gimpundo.c: simplified get_preview() implementations:

	- never scale previews up, only down.
	- don't render white or checks backgrounds but simply return
	  TempBufs with alpha and let the preview system do its job.
	- don't add padding but simply return previews smaller than
	  requested.

	* app/display/gimpdisplayshell-render.[ch]: added
	"render_blend_white", a 2d lookup table for blending on white,
	just as the check lookup tables. Added "render_white_buf".

	* app/widgets/gimppreview.[ch]: changed a lot:

	- don't render the preview's border into the buffer.
	- added "GdkGC *border_gc" and draw the preview's border in expose()
	  using gdk_draw_rectangle().
	- added "GdkPixbuf *no_preview_pixbuf" and create it in
	  gimp_preview_real_render() if gimp_viewable_get_preview()
	  returned NULL.
	- factored the actual preview rendering out to
	  gimp_preview_render_to_buffer(). Added configurable background
	  rendering for the preview itself and it's padding area
	  (the area the preview is larger than the buffer returned
	  by gimp_viewable_get_preview()).
	- changed gimp_preview_render_and_flush() to
	  gimp_preview_render_preview() and added "inside_bg" and
	  "outside_bg" parameters.
	- use the new render buffers for blending on white.

	* app/widgets/gimpbrushpreview.c
	* app/widgets/gimpbufferpreview.c
	* app/widgets/gimpdrawablepreview.c
	* app/widgets/gimpgradientpreview.c
	* app/widgets/gimpimagepreview.c
	* app/widgets/gimppalettepreview.c
	* app/widgets/gimppatternpreview.c: don't create large white
	TempBufs to center the previews in but simply set the TempBuf's
	offsets to get them centered. Simplified & cleaned up many preview
	render functions. Pass the correct GimpPreviewBG modes to
	gimp_preview_render_preview().

	* app/widgets/gimpcellrendererviewable.[ch]: new GtkCellRenderer
	class derived from GtkCellRendererPixbuf which knows how
	to use gimp_viewable_get_preview_size() and renders the
	viewable's stock item if no preview can be created.

	* app/widgets/gimpcontainertreeview.c: added a GtkTreeCellDataFunc
	which creates the preview pixbuf if needed so we don't create it
	unconditionally upon item insertion. Fixed preview size assertion
	to use GIMP_PREVIEW_MAX_SIZE, not "64". Block "selection_changed"
	while reordering the selected item.

	* app/widgets/gimpcontainerview.c: cosmetic.

	* app/widgets/gimpimagefilepreview.[ch]
	* app/widgets/gimptoolinfopreview.[ch]
	* app/widgets/gimpundopreview.[ch]: removed because the default
	implementation is good enough.

	* app/widgets/Makefile.am
	* app/widgets/widgets-types.h
	* app/widgets/gimppreview-utils.c: changed accordingly.

	* app/gui/dialogs-constructors.[ch]
	* app/gui/dialogs-menu.c
	* app/gui/dialogs.c
	* app/gui/image-menu.c
	* app/gui/toolbox-menu.c: register grid and tree view variants
	of the document history.

	Unrelated:

	* app/gui/gui.c (gui_exit_finish_callback): disconnect from
	signals earlier.

	* app/gui/user-install-dialog.c: create the "tool-options" subdir
	of the user's ~/.gimp-1.3 directory.
2003-02-26 16:15:50 +00:00
..
actions app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
arch/i386/mmx Fixed .type directives (would not compile on certain systems). 2002-05-07 07:59:21 +00:00
base removed the "truly ugly hack"... 2003-02-03 13:39:55 +00:00
config app/config/gimpdisplayconfig.[ch] app/config/gimprc-blurbs.h 2003-02-25 16:30:53 +00:00
core added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:15:50 +00:00
dialogs app/config/gimpdisplayconfig.[ch] app/config/gimprc-blurbs.h 2003-02-25 16:30:53 +00:00
display app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
file Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
gui app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
menus app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
paint Reimplemented the undo history: 2003-02-20 12:47:42 +00:00
paint-funcs *** empty log message *** 2003-02-18 06:03:18 +00:00
pdb tools/pdbgen/pdb/procedural_db.pdb use regfree() to free the regex pattern 2003-02-18 16:29:28 +00:00
plug-in #include <sys/types.h> for ipc/shm headers. (Bug #106461) 2003-02-18 22:47:13 +00:00
text app/text/gimptext.[ch] added a language property to GimpText which 2003-02-24 18:54:24 +00:00
tools if in free select mode set width and height in the tool options. 2003-02-25 02:13:03 +00:00
vectors added new virtual function duplicate() as replacement for all 2003-02-11 13:52:47 +00:00
widgets app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
xcf added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
.cvsignore Makefile.am configure.in gimp-1.3.pc.in added pkg-config files for 2001-11-25 00:19:38 +00:00
Makefile.am Reimplemented the undo history: 2003-02-20 12:47:42 +00:00
airbrush.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
app_procs.c added a "const gchar *extension" parameter to 2003-02-10 11:46:10 +00:00
app_procs.h when checking for 'excecutable' make sure it is a regular file too (on 2003-01-01 13:33:27 +00:00
appenv.h added -DGIMP_APP_GLUE_COMPILATION to AM_CPPFLAGS. 2002-12-04 12:26:39 +00:00
batch.c Cleaned up the exit process: 2002-12-05 15:49:59 +00:00
batch.h added -DGIMP_APP_GLUE_COMPILATION to AM_CPPFLAGS. 2002-12-04 12:26:39 +00:00
errors.c forgot a "return". 2001-12-01 22:59:48 +00:00
errors.h added -DGIMP_APP_GLUE_COMPILATION to AM_CPPFLAGS. 2002-12-04 12:26:39 +00:00
gimp.rc Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00
gimp.sym Add the symbols used by libgimpwidgets. 2002-12-26 02:25:55 +00:00
libgimp_glue.c app/Makefile.am removed... 2002-05-05 19:17:41 +00:00
libgimp_glue.h added -DGIMP_APP_GLUE_COMPILATION to AM_CPPFLAGS. 2002-12-04 12:26:39 +00:00
main.c just a minor string change. 2003-01-19 12:44:31 +00:00
makefile.mingw.in Mark as out-of-date. 2002-12-26 01:19:09 +00:00
makefile.msc when checking for 'excecutable' make sure it is a regular file too (on 2003-01-01 13:33:27 +00:00
ops_buttons.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
ops_buttons.h app/docindex.c more GObject porting. 2001-07-29 08:37:43 +00:00
paint_core.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
paint_options.h prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
path.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
path.h added app/display/ and app/plug-in/. Empty for now except for the types 2001-08-17 14:27:31 +00:00
pathP.h Michael Natterer <mitch@gimp.org> 2001-12-03 13:44:59 +00:00
path_transform.h General undo cleanup: 2002-02-23 17:29:19 +00:00
plug_in_cmds.c Garry R. Osgood <grosgood@rcn.com> 2001-03-11 13:15:41 +00:00
transform_core.c prototype for an extension that allows gmodules as plugins. Known bug: 2001-02-14 04:55:21 +00:00
wilber.ico Second batch of Win32 merge. 1999-03-07 12:56:03 +00:00