Gimp/app/gui
Michael Natterer 48bf4fb7b2 don't scale the preview up if the buffer is too small.
2003-03-01  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpbuffer.c: don't scale the preview up if the
	buffer is too small.

	* app/core/gimppattern.c: don't add a white border around the
	preview if the pattern is too small.

	* app/widgets/gimppreviewrenderer.[ch]: new object. A buffer
	that updates itself on GimpViewable changes and can render
	itself to any widget. Basically GimpPreview reduced to the
	render and draw code.

	* app/widgets/gimppreview.[ch]: removed all rendering and drawing
	code and keep a GimpPreviewRenderer instance. Connect to its
	"update" signal for queuing draws on the preview.

	* app/widgets/gimpcellrendererviewable.[ch]
	* app/widgets/gimpcontainertreeview.c: same here: removed
	rendering and drawing code and keep GimpPreviewRenderers in the
	list store.  Delays preview creation for GtkTreeViews until the
	buffer is really needed for drawing and adds idle preview updating
	on viewable changes.

	* app/widgets/gimppreview-utils.[ch]
	* app/widgets/gimpbrushpreview.[ch]
	* app/widgets/gimpbufferpreview.[ch]
	* app/widgets/gimpdrawablepreview.[ch]
	* app/widgets/gimpimagepreview.[ch]: removed...

	* app/widgets/gimppreviewrenderer-utils.[ch]
	* app/widgets/gimppreviewrendererbrush.[ch]
	* app/widgets/gimppreviewrendererdrawable.[ch]
	* app/widgets/gimppreviewrendererimage.[ch]: ...and converted to
	GimpPreviewRenderer subclasses.

	* app/display/gimpnavigationview.c
	* app/gui/palette-import-dialog.c
	* app/widgets/Makefile.am
	* app/widgets/widgets-enums.h
	* app/widgets/widgets-types.h
	* app/widgets/gimpchannellistview.c
	* app/widgets/gimpcomponentlistitem.c
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimpcontainermenuimpl.c
	* app/widgets/gimplayerlistitem.c
	* app/widgets/gimplistitem.c
	* app/widgets/gimpnavigationpreview.[ch]
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpvectorslistview.c: changed accordingly.
2003-03-01 03:53:41 +00:00
..
.cvsignore configure.in app/Makefile.am new directory which will contain all gui code 2001-04-14 15:21:45 +00:00
about-dialog.c app/gui/about-dialog.c app/widgets/gimpimagefilepreview.c use 2003-02-22 01:33:42 +00:00
about-dialog.h app/devices.[ch] app/gui/about-dialog.[ch] app/gui/preferences-dialog.[ch] 2001-04-18 16:39:34 +00:00
authors.h fixed stupid bug that caused this plug-in to map to undefined values. 2002-11-05 23:01:04 +00:00
brush-select.c renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
brush-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
brushes-menu.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
brushes-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
buffers-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
buffers-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
buffers-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
buffers-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
channels-commands.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
channels-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
channels-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
channels-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
color-history.c app/gui/Makefile.am new files implementing the color history which used to 2002-10-24 23:10:50 +00:00
color-history.h app/gui/Makefile.am new files implementing the color history which used to 2002-10-24 23:10:50 +00:00
color-notebook.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
color-notebook.h the color scales from the main color selection as GimpColorSelector 2002-10-28 20:13:17 +00:00
colormap-editor-commands.c app/widgets/Makefile.am app/widgets/widgets-types.h new GimpEditor 2003-02-20 15:40:15 +00:00
colormap-editor-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
colormap-editor-menu.c app/widgets/Makefile.am app/widgets/widgets-types.h new GimpEditor 2003-02-20 15:40:15 +00:00
colormap-editor-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
convert-dialog.c set the correct default value for the palette type menu (fixes bug 2003-02-23 16:06:21 +00:00
convert-dialog.h app/Makefile.am removed. new files: the convert functionality without GUI 2001-04-18 17:57:10 +00:00
data-commands.c app/widgets/gimpcolormapeditor.c app/widgets/gimpcontainereditor.[ch] pass 2003-01-10 19:30:32 +00:00
data-commands.h the active_tool may change in the middle of gdisplay_canvas_events(), so 2001-07-08 21:44:52 +00:00
debug-commands.c Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
debug-commands.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
device-status-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
device-status-dialog.h app/Makefile.am removed, chopped... 2001-12-07 17:39:51 +00:00
dialogs-commands.c fixed strstr() call so we can switch back from tree views again. 2003-02-24 12:40:55 +00:00
dialogs-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
dialogs-constructors.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
dialogs-constructors.h added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
dialogs-menu.c added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
dialogs-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
dialogs.c added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
dialogs.h g_strdup() the stock_id passed to gimp_tool_info_new() because the 2002-03-14 17:07:02 +00:00
documents-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
documents-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
documents-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
documents-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
drawable-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
drawable-commands.h make absolute paths out of relative ones passed on the commandline so the 2002-02-26 16:30:14 +00:00
edit-commands.c Moved the undo system to the core: Keep GimpUndoStack objects as undo and 2003-02-12 17:11:34 +00:00
edit-commands.h app/Makefile.am removed. 2001-06-26 12:09:43 +00:00
error-console-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
error-console-dialog.h app/main.c moved "message_handler" from here... 2001-12-01 21:02:34 +00:00
file-commands.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
file-commands.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
file-dialog-utils.c removed. 2003-01-31 11:54:16 +00:00
file-dialog-utils.h removed. 2003-01-31 11:54:16 +00:00
file-new-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
file-new-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
file-open-dialog.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
file-open-dialog.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
file-open-menu.c One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
file-open-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
file-save-dialog.c removed. 2003-01-31 11:54:16 +00:00
file-save-dialog.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
file-save-menu.c removed. 2003-01-31 11:54:16 +00:00
file-save-menu.h removed. 2003-01-31 11:54:16 +00:00
gradient-editor-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradient-editor-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradient-editor-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradient-editor-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradient-select.c renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
gradient-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
gradients-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradients-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gradients-menu.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
gradients-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
gui-types.h app/Makefile.am removed... 2002-05-05 19:17:41 +00:00
gui.c added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
gui.h make gui_libs_init() use gtk_init_check() and return a gboolean on success 2003-01-08 23:43:31 +00:00
help-commands.c devel-docs/Makefile.am new file documenting the core's include policy. 2002-05-03 12:45:22 +00:00
help-commands.h app/gui/Makefile.am removed... 2002-03-20 20:08:19 +00:00
image-commands.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
image-commands.h renamed shell->cd_list to shell->filters and shell->cd_ui to 2002-03-15 15:09:58 +00:00
image-menu.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
image-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
images-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
images-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
images-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
images-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
info-dialog.c made labels in the info dialog selectable as suggested in #103991. 2003-01-20 20:07:19 +00:00
info-dialog.h app/gui/file-new-dialog.c app/gui/offset-dialog.c 2002-09-07 16:47:39 +00:00
info-window.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
info-window.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
layers-commands.c added "undo_desc" parameters. 2003-02-17 13:33:29 +00:00
layers-commands.h added "undo_desc" parameters. 2003-02-17 13:33:29 +00:00
layers-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
layers-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
Makefile.am app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +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
menus.c removed. 2003-01-31 11:54:16 +00:00
menus.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
module-browser.c pack the button box non-expanding, removed cruft from the ModuleBrowser 2003-01-29 11:08:51 +00:00
module-browser.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
offset-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
offset-dialog.h use the passed Gimp pointer instead of using "the_gimp". 2001-12-03 17:59:48 +00:00
palette-editor-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palette-editor-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palette-editor-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palette-editor-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palette-import-dialog.c don't scale the preview up if the buffer is too small. 2003-03-01 03:53:41 +00:00
palette-import-dialog.h added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. 2001-12-17 23:41:01 +00:00
palette-select.c renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
palette-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
palettes-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palettes-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
palettes-menu.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
palettes-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
paths-dialog.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
paths-dialog.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
pattern-select.c renamed plug_in_progress_init() to plug_in_progress_start() so it matches 2003-01-20 12:17:32 +00:00
pattern-select.h removed the "feature" of creating dialogs without action area by passing 2002-11-18 00:04:16 +00:00
patterns-menu.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
patterns-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
plug-in-commands.c added lots of members for the complete state of the plug-ins. 2003-02-11 12:07:31 +00:00
plug-in-commands.h badly chopped into the new files below. Pass around much more "PlugIn" and 2002-03-20 17:46:13 +00:00
plug-in-menus.c added plug_ins_proc_def_find() which takes a ProcRecord and returns the 2003-02-18 14:08:14 +00:00
plug-in-menus.h One more Plug-In cleanup, it's still a mess... 2003-01-17 18:07:37 +00:00
preferences-dialog.c app/config/gimpdisplayconfig.[ch] app/config/gimprc-blurbs.h 2003-02-25 16:30:53 +00:00
preferences-dialog.h Cleanup weekend... 2001-10-29 11:47:11 +00:00
qmask-commands.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
qmask-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
qmask-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
qmask-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
resize-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
resize-dialog.h app/widgets/gimplayerlistview.c some more auto-sizing spinbuttons. 2002-09-08 12:18:23 +00:00
resolution-calibrate-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
resolution-calibrate-dialog.h take an optional pixbuf as eye-candy. 2002-02-28 15:11:56 +00:00
select-commands.c Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
select-commands.h app/gui/menus.c added a menu entry that toggles the QuickMask state and 2002-08-27 13:29:47 +00:00
session.c Finally landed the new GimpConfig based gimprc parser. It's not finished 2002-11-18 20:50:31 +00:00
session.h pass a "Gimp" to gui_libs_init(), initialize the GUI before initializing 2001-10-23 16:23:32 +00:00
splash.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
splash.h bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. 2001-11-22 23:46:13 +00:00
test-commands.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
test-commands.h override GObjectClass->constructor() and do the setup stuff there, not in 2002-05-28 16:41:56 +00:00
tips-dialog.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
tips-dialog.h Finally landed the new GimpConfig based gimprc parser. It's not finished 2002-11-18 20:50:31 +00:00
tips-parser.c don't insert an extra line-break after a serialized property. 2003-02-26 20:34:58 +00:00
tips-parser.h updated 2002-02-25 18:36:03 +00:00
tool-options-dialog.c added a "const gchar *extension" parameter to 2003-02-10 11:46:10 +00:00
tool-options-dialog.h app/gui/dialogs-constructors.[ch] app/gui/dialogs.c made the tool options 2002-03-10 15:05:58 +00:00
toolbox-menu.c added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
toolbox-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
tools-commands.c app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
tools-commands.h app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
user-install-dialog.c added a writeable field to GimpData and set it from 2003-02-26 18:08:26 +00:00
user-install-dialog.h added "gboolean verbose" to GimpRc and its constructor. Print messages 2002-11-26 14:54:28 +00:00
vectors-commands.c added "undo_desc" parameters. 2003-02-17 13:33:29 +00:00
vectors-commands.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
vectors-menu.c app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
vectors-menu.h app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] 2003-01-13 14:08:10 +00:00
view-commands.c Refactored the GimpDisplayShell update/draw code: 2003-02-21 12:16:43 +00:00
view-commands.h Changed menubar showing/hiding to work like rulers and statusbar: 2002-12-14 14:13:54 +00:00