Gimp/app/display
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 new function to set the sensitivity of an option_menu. 2002-03-17 16:35:05 +00:00
display-enums.c removed gimp_config_values_equal(). 2002-11-23 22:22:21 +00:00
display-enums.h removed gimp_config_values_equal(). 2002-11-23 22:22:21 +00:00
display-types.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
gimpdisplay-area.c Wishlist item #57669: 2001-11-16 15:08:59 +00:00
gimpdisplay-area.h Wishlist item #57669: 2001-11-16 15:08:59 +00:00
gimpdisplay-foreach.c removed gimp_displays_invalidate() again. 2003-02-24 12:30:33 +00:00
gimpdisplay-foreach.h removed gimp_displays_invalidate() again. 2003-02-24 12:30:33 +00:00
gimpdisplay-handlers.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdisplay-handlers.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplay.c replaced a for-loop with a call to memcpy(). 2003-02-21 12:48:13 +00:00
gimpdisplay.h Move away from creating all item_factories statically in menus_init() but 2003-01-10 17:55:53 +00:00
gimpdisplayshell-callbacks.c removed debugging output. 2003-02-26 19:03:06 +00:00
gimpdisplayshell-callbacks.h app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
gimpdisplayshell-cursor.c Refactored the GimpDisplayShell update/draw code: 2003-02-21 12:16:43 +00:00
gimpdisplayshell-cursor.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-dnd.c Fixed most of the bugs the Script-Fu logo scripts triggered: 2003-02-14 22:33:22 +00:00
gimpdisplayshell-dnd.h build display/ before tools/. 2001-11-08 19:14:51 +00:00
gimpdisplayshell-draw.c app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
gimpdisplayshell-draw.h replaced the "gboolean title_dirty" in GimpDisplayShell by "guint 2003-02-25 19:01:10 +00:00
gimpdisplayshell-filter-dialog.c Refactored the GimpDisplayShell update/draw code: 2003-02-21 12:16:43 +00:00
gimpdisplayshell-filter-dialog.h Re-enabled the display filters. They work exactly the same way as before 2002-03-14 22:42:50 +00:00
gimpdisplayshell-filter.c removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is 2002-10-20 12:22:39 +00:00
gimpdisplayshell-filter.h removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is 2002-10-20 12:22:39 +00:00
gimpdisplayshell-handlers.c replaced the "gboolean title_dirty" in GimpDisplayShell by "guint 2003-02-25 19:01:10 +00:00
gimpdisplayshell-handlers.h app/Makefile.am removed. 2001-11-10 19:10:28 +00:00
gimpdisplayshell-layer-select.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpdisplayshell-layer-select.h build display/ before tools/. 2001-11-08 19:14:51 +00:00
gimpdisplayshell-marching-ants.h app/display/gimpdisplay-marching-ants.h removed... 2001-11-10 23:03:22 +00:00
gimpdisplayshell-render.c added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
gimpdisplayshell-render.h added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI 2003-02-26 16:17:10 +00:00
gimpdisplayshell-scale.c replaced the "gboolean title_dirty" in GimpDisplayShell by "guint 2003-02-25 19:01:10 +00:00
gimpdisplayshell-scale.h Fixed #34633 (wheel mouse zooming leaves straigth-line helpline on image) 2002-02-17 11:46:39 +00:00
gimpdisplayshell-scroll.c don't wait for graphics expose events. Commented out the call to 2003-02-21 13:07:15 +00:00
gimpdisplayshell-scroll.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplayshell-selection.c Refactored the GimpDisplayShell update/draw code: 2003-02-21 12:16:43 +00:00
gimpdisplayshell-selection.h app/display/gimpdisplayshell-selection.[ch] app/tools/gimpblendtool.c 2003-02-03 23:54:19 +00:00
gimpdisplayshell-title.c replaced the "gboolean title_dirty" in GimpDisplayShell by "guint 2003-02-25 19:01:10 +00:00
gimpdisplayshell-title.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-transform.c bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell-transform.h bumped the version number to 1.3.12. 2003-01-03 18:01:30 +00:00
gimpdisplayshell.c app/display/gimpdisplayshell-callbacks.[ch] override 2003-02-25 19:12:11 +00:00
gimpdisplayshell.h replaced the "gboolean title_dirty" in GimpDisplayShell by "guint 2003-02-25 19:01:10 +00:00
gimpnavigationeditor.c don't scale the preview up if the buffer is too small. 2003-03-01 03:53:41 +00:00
gimpnavigationeditor.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
gimpnavigationview.c don't scale the preview up if the buffer is too small. 2003-03-01 03:53:41 +00:00
gimpnavigationview.h app/Makefile.am removed. 2002-05-07 16:23:14 +00:00
gimpprogress.c cleanup, removed unecessary G_OBJECT() casts. Should do the same for 2003-01-05 22:07:10 +00:00
gimpprogress.h app/Makefile.am removed... 2002-02-22 15:08:47 +00:00
gimpstatusbar.c fixed a compiler warning. 2003-01-09 23:17:36 +00:00
gimpstatusbar.h removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the 2002-06-26 22:16:59 +00:00
Makefile.am removed the "truly ugly hack"... 2003-02-03 13:39:55 +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