1. 15 Dec, 2004 1 commit
  2. 12 Dec, 2004 1 commit
    • Michael Natterer's avatar
      added precondition check for the coords of the src area. Some cleanup and · 2e263a8c
      Michael Natterer authored
      2004-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-preview.c (gimp_drawable_get_sub_preview):
      	added precondition check for the coords of the src area. Some
      	cleanup and simplification.
      
      	* app/widgets/gimpviewrendererdrawable.c
      	(gimp_view_renderer_drawable_render): don't request sub-previews
      	of areas outside the drawable and don't reuqest previews of zero
      	width or height. Fixes crashes with the new preview code.
      2e263a8c
  3. 11 Dec, 2004 1 commit
    • Michael Natterer's avatar
      added new function gimp_drawable_get_sub_preview() which returns a scaled · 4714802a
      Michael Natterer authored
      2004-12-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-preview.[ch]: added new function
      	gimp_drawable_get_sub_preview() which returns a scaled preview of
      	a part of a drawable.
      
      	(gimp_drawable_preview_scale): made it work with srcPR.x and
      	srcPR.y being != 0.
      
      	* app/core/gimpimage-preview.c (gimp_image_get_new_preview)
      	* app/widgets/gimpviewrendererdrawable.c
      	(gimp_view_renderer_drawable_render): if the area of the drawable
      	preview is more than 4 times larger than the drawable itself (evil
      	heuristic, but seems to work fine), use above function to get a
      	sub-preview of the drawable instead of getting an insanely large
      	preview of the whole drawable just to use a small part of it.
      	Fixes bug #142074.
      
      	* app/core/gimpimage-preview.c (gimp_image_get_new_preview):
      	optimized by skipping layers which do not intersect with the
      	canvas.
      4714802a
  4. 09 Sep, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/gimpviewrendererbrush.c app/widgets/gimpviewrendererdrawable.c · fa3f37e9
      Michael Natterer authored
      2004-09-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpviewrendererbrush.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/widgets/gimpviewrendererimage.c
      	* app/widgets/gimpviewrendererimagefile.c
      	* app/widgets/gimpviewrendererlayer.c
      	* app/widgets/gimpviewrenderervectors.c: purely cosmetic cleanup.
      fa3f37e9
  5. 26 Aug, 2004 1 commit
    • David Odin's avatar
      app/widgets/gimppreviewrenderer-utils.c · 16222432
      David Odin authored
      * app/widgets/gimppreviewrenderer-utils.c
      * app/widgets/gimppreviewrenderer-utils.h
      * app/widgets/gimppreviewrendererbrush.c
      * app/widgets/gimppreviewrendererbrush.h
      * app/widgets/gimppreviewrendererdrawable.c
      * app/widgets/gimppreviewrendererdrawable.h
      * app/widgets/gimppreviewrenderergradient.c
      * app/widgets/gimppreviewrenderergradient.h
      * app/widgets/gimppreviewrendererimage.c
      * app/widgets/gimppreviewrendererimage.h
      * app/widgets/gimppreviewrendererimagefile.c
      * app/widgets/gimppreviewrendererimagefile.h
      * app/widgets/gimppreviewrendererlayer.c
      * app/widgets/gimppreviewrendererlayer.h
      * app/widgets/gimppreviewrenderervectors.c
      * app/widgets/gimppreviewrenderervectors.h: Renamed all these files...
      
      * app/widgets/gimpviewrenderer-utils.c
      * app/widgets/gimpviewrenderer-utils.h
      * app/widgets/gimpviewrendererbrush.c
      * app/widgets/gimpviewrendererbrush.h
      * app/widgets/gimpviewrendererdrawable.c
      * app/widgets/gimpviewrendererdrawable.h
      * app/widgets/gimpviewrenderergradient.c
      * app/widgets/gimpviewrenderergradient.h
      * app/widgets/gimpviewrendererimage.c
      * app/widgets/gimpviewrendererimage.h
      * app/widgets/gimpviewrendererimagefile.c
      * app/widgets/gimpviewrendererimagefile.h
      * app/widgets/gimpviewrendererlayer.c
      * app/widgets/gimpviewrendererlayer.h
      * app/widgets/gimpviewrenderervectors.c
      * app/widgets/gimpviewrenderervectors.h: ... to these names. And also
        changed all the GimpPreviewRenderer* types to GimpViewRenderer* ones.
      
      * app/tools/gimppaintoptions-gui.c
      
      * app/widgets/Makefile.am
      * app/widgets/gimpcomponenteditor.c
      * app/widgets/gimpfiledialog.c
      * app/widgets/gimpgradienteditor.c
      * app/widgets/gimpview.c
      * app/widgets/widgets-types.h
      * app/widgets/gimpviewrenderer.c
      * app/widgets/gimpviewrenderer.h: modified accordingly.
      16222432
  6. 25 Aug, 2004 1 commit
    • David Odin's avatar
      app/widgets/gimppreview-popup.c renamed these files... · e91187ae
      David Odin authored
      * app/widgets/gimppreview-popup.c
      * app/widgets/gimppreview-popup.h: renamed these files...
      
      * app/widgets/gimpview-popup.c
      * app/widgets/gimpview-popup.h: .. to these files, and changed the
        GimpPreviewPopup type to GimpViewPopup.
      
      * app/widgets/gimppreviewrenderer.c
      * app/widgets/gimppreviewrenderer.h: renamed these files...
      
      * app/widgets/gimpviewrenderer.c
      * app/widgets/gimpviewrenderer.h: .. to these files, and changed
        GimpPreviewRenderer to GimpViewRenderer.
      
      This is the second step of the great Preview->View renaming process.
      
      * app/display/gimpdisplayshell-layer-select.c
      * app/display/gimpnavigationeditor.c
      
      * app/widgets/Makefile.am
      * app/widgets/gimpbrushfactoryview.c
      * app/widgets/gimpbufferview.c
      * app/widgets/gimpcellrendererviewable.c
      * app/widgets/gimpcellrendererviewable.h
      * app/widgets/gimpcomponenteditor.c
      * app/widgets/gimpcontainerbox.c
      * app/widgets/gimpcontainercombobox.c
      * app/widgets/gimpcontainereditor.c
      * app/widgets/gimpcontainerentry.c
      * app/widgets/gimpcontainergridview.c
      * app/widgets/gimpcontainerpopup.c
      * app/widgets/gimpcontainertreeview-dnd.c
      * app/widgets/gimpcontainertreeview.c
      * app/widgets/gimpcontainerview.c
      * app/widgets/gimpdatafactoryview.c
      * app/widgets/gimpitemtreeview.c
      * app/widgets/gimplayertreeview.c
      * app/widgets/gimpnavigationpreview.c
      * app/widgets/gimppatternfactoryview.c
      * app/widgets/gimppreviewrenderer-utils.c
      * app/widgets/gimppreviewrendererbrush.c
      * app/widgets/gimppreviewrendererbrush.h
      * app/widgets/gimppreviewrendererdrawable.c
      * app/widgets/gimppreviewrendererdrawable.h
      * app/widgets/gimppreviewrenderergradient.c
      * app/widgets/gimppreviewrenderergradient.h
      * app/widgets/gimppreviewrendererimage.c
      * app/widgets/gimppreviewrendererimage.h
      * app/widgets/gimppreviewrendererimagefile.c
      * app/widgets/gimppreviewrendererimagefile.h
      * app/widgets/gimppreviewrendererlayer.c
      * app/widgets/gimppreviewrenderervectors.c
      * app/widgets/gimpselectioneditor.c
      * app/widgets/gimptemplateview.c
      * app/widgets/gimptooloptionseditor.c
      * app/widgets/gimptoolview.c
      * app/widgets/gimpview.c
      * app/widgets/gimpview.h
      * app/widgets/gimpviewablebutton.c
      * app/widgets/widgets-enums.h
      * app/widgets/widgets-types.h: Modified accordingly.
      e91187ae
  7. 17 Nov, 2003 1 commit
    • Sven Neumann's avatar
      removed the unused GimpViewable parameter from · dab006d5
      Sven Neumann authored
      2003-11-17  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpviewable.[ch]: removed the unused GimpViewable
      	parameter from gimp_viewable_calc_preview_size().
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpitem-preview.c
      	* app/core/gimpundo.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/widgets/gimppreviewrendererimage.c: changed accordingly.
      
      	* app/widgets/gimppreviewrenderer.[ch]: store the viewable_type in
      	the preview renderer and use its default stock_id if no viewable
      	is set.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpgradient.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.c: set a default stock_id.
      dab006d5
  8. 08 May, 2003 1 commit
    • Michael Natterer's avatar
      More transform virtualization preparation: · 4136e61d
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	More transform virtualization preparation:
      
      	* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
      	and "offset_y"...
      
      	* app/core/gimpitem.[ch]: ...and added them here.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/text/gimptext-compat.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      4136e61d
  9. 06 Mar, 2003 1 commit
    • Michael Natterer's avatar
      themes/Default/images/stock-delete-16.png · 3c33140f
      Michael Natterer authored
      2003-03-06  Michael Natterer  <mitch@gimp.org>
      
      	* themes/Default/images/stock-delete-16.png
      	* themes/Default/images/stock-lower-16.png
      	* themes/Default/images/stock-new-16.png
      	* themes/Default/images/stock-paste-16.png
      	* themes/Default/images/stock-raise-16.png
      	* themes/Default/images/stock-refresh-16.png: removed these files
      	since we use the icons provided by GTK+ now.
      
      	* themes/Default/gtkrc
      	* themes/Default/images/Makefile.am: removed them here hoo.
      
      	* libgimpwidgets/gimpstock.[ch]: reordered stuff to be consistent
      	in the header and the .c file. Added GIMP_STOCK_ERROR and
      	GIMP_STOCK_QUESTION which are available in all sizes (unlike
      	GTK_STOCK_DIALOG_ERROR and GTK_STOCK_DIALOG_QUESTION).
      
      	* app/core/gimpviewable.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/widgets/gimpdatafactoryview.c: use the new stock IDs.
      
      	* app/config/gimpcoreconfig.[ch]: renamed "preview_size" to
      	"layer_preview_size" and added "gboolean layer_previews" which
      	switches layer previews on/off independent of their size.
      
      	* app/config/gimprc-blurbs.h: added/changed their blurbs.
      
      	* app/core/core-enums.[ch]: removed GIMP_PREVIEW_SIZE_NONE.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage.c: return NULL previews if
      	core_config->layer_previews is FALSE. Invalidate all layer/channel
      	previews whenever "layer_previews" changes.
      
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/widgets/gimppreviewrendererimage.c: render the stock_id
      	if the drawable/image returns a NULL preview. Fixes bug #107242.
      
      	* app/display/gimpdisplayshell-handlers.c: don't set the
      	sensitivity of the navigation button because it can no longer be
      	disabled.
      
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c
      	* app/gui/paths-dialog.c: changed accordingly.
      
      	* app/gui/preferences-dialog.c: added a toggle button for the new
      	"layer_previews" boolean.
      
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerlistview.c: chain up unconditionally
      	in GimpContainerView::clear_items().
      
      	* app/widgets/gimpcontainertreeview.c: ditto. Made the reorder()
      	implementation lengthy and eeky (but working) again... Stop signal
      	emission on double clicks so GtkTreeView doesn't re-select the
      	item we are about change.
      
      	* app/widgets/gimpcontainerview.c
      	(gimp_container_view_real_clear_items): need to use
      	g_hash_table_new_full() here too or everything will b0rk.
      
      	* app/widgets/gimppreviewrenderer.c
      	(gimp_preview_renderer_default_render_stock): use
      	gtk_widget_render_icon() instead of gtk_icon_set_render_icon().
      
      	* tools/pdbgen/enums.pl: this file wanted to be regenerated...
      3c33140f
  10. 03 Mar, 2003 1 commit
    • Michael Natterer's avatar
      made the default buffer and stock rendering functions public so derived · 6bfa4f54
      Michael Natterer authored
      2003-03-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppreviewrenderer.[ch]: made the default buffer
      	and stock rendering functions public so derived renderers
      	can use them. Renamed gimp_preview_renderer_render_preview()
      	to gimp_preview_renderer_render_buffer().
      
      	* app/widgets/gimppreviewrendererbrush.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/widgets/gimppreviewrendererimage.c: changed accordingly.
      
      	* app/widgets/gimppreviewrenderertextlayer.[ch]: new renderer
      	for text layers which always renders the stock icon.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppreviewrenderer-utils.c: changed accordingly.
      6bfa4f54
  11. 01 Mar, 2003 1 commit
    • Michael Natterer's avatar
      don't scale the preview up if the buffer is too small. · 48bf4fb7
      Michael Natterer authored
      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.
      48bf4fb7
  12. 27 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added virtual function get_popup_size() which returns a boolean indicating · 0614aa53
      Michael Natterer authored
      2003-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	get_popup_size() which returns a boolean indicating if a popup is
      	needed and its size.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimpundo.c: implement it.
      
      	* app/widgets/gimppreview.[ch]: removed virtual functions
      	needs_popup() and create_popup(). Removed the code which creates
      	the popup and the popup members of the GimpPreview struct.
      
      	* app/widgets/gimppreview-popup.[ch]: new files providing the
      	utility function gimp_preview_popup_show() which can show popups
      	from any widget, not just from a GimpPreview. Checks if a popup is
      	needed using gimp_viewable_get_popup_size().
      
      	* app/widgets/gimpcellrendererviewable.c: show popups here too.
      
      	* app/widgets/gimpbrushpreview.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.c: removed needs_popup() and
      	create_popup() implementations.
      
      	* app/widgets/gimpnavigationpreview.c: removed empty render()
      	implementation.
      
      	* app/widgets/gimpundoeditor.c: use a tree instead of a list view.
      
      	* app/widgets/gimpgradientpreview.[ch]
      	* app/widgets/gimppalettepreview.[ch]
      	* app/widgets/gimppatternpreview.[ch]: removed because they only
      	implemented the removed popup functions.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimppreview-utils.c: changed accordingly
      0614aa53
  13. 26 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added "gchar *stock_id" to the GimpViewable struct. It is used by the GUI · 305db405
      Michael Natterer authored
      2003-02-26  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.
      305db405
  14. 21 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Started migration from GtkList to GtkTreeView: · 9ee632a6
      Michael Natterer authored
      2003-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Started migration from GtkList to GtkTreeView:
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontainertreeview.[ch]; new GimpContainerView
      	subclass using GtkListStore/GtkTreeView.
      
      	* app/widgets/widgets-enums.h: added GIMP_VIEW_TYPE_TREE to
      	thje GimpViewType enum.
      
      	* app/widgets/gimpcontainereditor.c: added GimpContainerTreeView
      	to the switch() which selects the view type.
      
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c: added tree view versions of many dialogs.
      
      	* app/widgets/gimppreview.[ch]: removed the get_size() virtual
      	function and gimp_preview_calc_size().
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	get_preview_size() and gimp_viewable_calc_preview_size().
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c: added get_preview_size() implementations.
      
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpgradientpreview.c
      	* app/widgets/gimpimagepreview.c
      	* app/widgets/gimppalettepreview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpundopreview.c
      	* app/display/gimpnavigationview.c: changed accordingly, removed
      	get_size() implementations.
      
      	* app/widgets/widgets-types.h: changed the first param of
      	GimpItemGetNameFunc from GtkWidget to GObject.
      
      	* app/widgets/gimpcontainerview-utils.c: accept a GimpViewable as
      	object in the built-in get_name funcs.
      
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c: changed accordingly.
      9ee632a6
  15. 28 Aug, 2002 1 commit
    • Michael Natterer's avatar
      look at drawable->offset_[xy] != 0 when deciding whether to offset the · 3f4d4d21
      Michael Natterer authored
      2002-08-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdrawablepreview.c (gimp_drawable_preview_render):
      	look at drawable->offset_[xy] != 0 when deciding whether to offset
      	the preview. Fixes bug where layers of the size of the image were
      	previewed with offset (0,0), regardless of their real offset.
      3f4d4d21
  16. 11 May, 2002 1 commit
    • Michael Natterer's avatar
      connect to size allocations of the navigation preview's parent container · 384a2a85
      Michael Natterer authored
      2002-05-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpnavigationview.c: connect to size allocations of
      	the navigation preview's parent container and resize it so it
      	takes all available space.
      
      	* app/widgets/gimppreview.[ch]: replaced magic values by public
      	#defines of GIMP_PREVIEW_MAX_SIZE and GIMP_PREVIEW_MAX_POPUP_SIZE.
      	Increased the maximum preview size to 1024. Don't call the virtual
      	get_size() function if preview->viewable is NULL but call
      	gimp_preview_real_get_size() directly.
      
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainermenu.c
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c
      	* app/widgets/gimpnavigationpreview.c: replaced magic values by
      	the new costants.
      384a2a85
  17. 25 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.c
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b
  18. 17 Oct, 2001 2 commits
    • Michael Natterer's avatar
      added a handler for GimpImage's "alpha_changed" signal (does nothing yet). · 6670bca2
      Michael Natterer authored
      2001-10-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpchannellistview.c: added a handler for GimpImage's
      	"alpha_changed" signal (does nothing yet).
      
      	* app/widgets/[lots of files]: somehow my last perl torturing
      	removed my email address from the copyright notice. Another perl
      	hack brought it back now :)
      6670bca2
    • Michael Natterer's avatar
      app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ · 18dd0728
      Michael Natterer authored
      2001-10-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpprogress.[ch]
      	* app/undo.c: s/GDisplay/GimpDisplay/
      
      	* app/plug_in.[ch]: removed unused boolean "destroy" field of
      	the PlugIn struct.
      
      	* app/core/gimpedit.c: don't include "app_procs.h"
      
      	* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
      	stuff from gimpdisplay-scroll.* here (less complicated and easier
      	to cleanup...)
      
      	* app/display/gimpdisplay-scroll.[ch]: removed here.
      
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g
      
      	* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
      	which was just a wrapper around
      	"gimp_context_get_display (gimp_get_user_context (the_gimp))"
      	(which is more to type but makes the use of the global
      	"the_gimp" variable more obvious).
      
      	* app/gui/color-area.h
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.h
      	* app/gui/paths-dialog.h
      	* app/gui/select-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/tools-commands.c
      	* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
      	removal, include "app_procs.h" for "the_gimp".
      
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimpeditselectiontool.h
      	* app/tools/gimphistogramtool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpmovetool.h
      	* app/tools/gimpperspectivetool.h
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimprotatetool.h
      	* app/tools/gimpscaletool.h
      	* app/tools/gimpsheartool.h
      	* app/tools/gimptexttool.h
      	* app/tools/gimpthresholdtool.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptransformtool.h
      	* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
      	all *_dialog_hide() functions private, cleanup.
      
      	* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
      	use GObject functions, removed lots of empty "destroy" methods and
      	use more type checking class cast macros instead of casting
      	directly.
      
      	* app/widgets/gimpcontainermenu.c: fixed item insert order.
      
      	* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
      	functions.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
      	Gtk+ does the right thing (TM) now.
      
      	* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
      	digging into tools/ and widgets/ (needs to be done for all
      	color PDB functions).
      
      	* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
      	function as a "Gimp" pointer is passed to them all.
      
      	* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"
      
      	* app/pdb/color_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/pdb/procedural_db.c: don't include "app_procs.h"
      18dd0728
  19. 26 Jun, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · d26c2668
      Michael Natterer authored
      2001-06-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/color_transfer.[ch]: removed.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorbalancetool-transfer.[ch]: added.
      
      	* app/tools/gimpcolorbalancetool.c: changed accordingly.
      
      	* app/base/Makefile.am
      	* app/base/tile-manager-crop.[ch]: formerly known as crop_buffer().
      
      	* app/tools/gimptexttool.c: changed accordingly.
      
      	* app/context_manager.[ch]: added the global clipboard and the
      	named buffer list here.
      
      	* app/app_procs.c: don't call color_transfer_init() and don't free
      	the buffer stuff (done by the context manager now).
      
      	* app/errorconsole.c: don't #include "gui/commands.h"
      
      	* app/global_edit.[ch]: removed lots of stuff which is now done by
      	gui/edit-commands.* or the new GimpBuffer object. The "paste
      	named" dialog will go away and this file will be moved to core/
      	soon.
      
      	* app/image_new.c: no need to declare the global_buffer extern any
      	more.
      
      	* app/qmask.c: don't #include "global_edit.h"
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpbuffer.[ch]: new object (aka named buffer)
      
      	* app/core/gimpcontext.[ch]: added a GimpBuffer attribute.
      
      	* app/core/gimpimage.[ch]: one s/int/gboolean/.
      
      	* app/core/gimppattern.c: hmm...
      
      	* app/gui/commands.[ch]: split up in small files:
      
      	* app/gui/Makefile.am
      	* app/gui/edit-commands.[ch]
      	* app/gui/file-commands.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/select-commands.[ch]
      	* app/gui/view-commands.[ch]: new files.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c: added the named buffer list & grid.
      
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/test-commands.c: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/edit.pdb: changed for the global_edit stuff.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpbufferpreview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]: new widgets.
      
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/widgets-types.h: changed accordingly for the new
      	GimpBuffer object and it's views, misc. cleanups.
      
      	* pixmaps/Makefile.am
      	* pixmaps/paste-as-new.xpm
      	* pixmaps/paste-into.xpm
      	* pixmaps/paste.xpm: new pixmaps (they all look the same... Tigert? ;-)
      
      	* po/POTFILES.in: added the new files.
      d26c2668
  20. 18 Jun, 2001 1 commit
    • Michael Natterer's avatar
      major cleanup. After being finished, I decided that it needs to be · 3ef20cd8
      Michael Natterer authored
      2001-06-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/nav_window.[ch]: major cleanup. After being finished, I
      	decided that it needs to be factored out to a widget (see below),
      	so like 90% of this file will go away soon.
      
      	* app/apptypes.h: added opaque NavigationDialog typedef.
      
      	* app/gdisplay.[ch]: Added gdisplay_selection_visibility() which
      	is called from gdisplays_selection_visibility(). Capitalized the
      	SelectionControl enum values. Cleaned up the GDisplay struct and
      	it's initialisation while i was on it.
      
      	* app/gimage.c: gimage_size_changed_handler(): removed stuff which
      	is now done by GimpImage itself.
      
      	* app/scale.c
      	* app/scroll.c: also update the navigation popup, not only the
      	dialog.
      
      	* app/selection.[ch]: major indentation & cleanup attack. Maybe
      	found the "Selection vanishes" bug (the timeout id was assinged to
      	a gint, not a _guint_).
      
      	* app/undo.c: s/gimp_image_size_changed/gimp_viweable_size_changed/
      
      	* app/core/gimpdrawable.c: invalidate the image's preview from our
      	"invalidate_preview" implementation. This means that the image's
      	preview is invalidated way too often currently, which cries for
      	some general freeze/thaw mechanism on the GimpViewable level.
      	(Note that previews are rendered in the idle loop, so this is not
      	really a major performance impact, it's just ugly).
      
      	* app/core/gimpimage.[ch]: removed the "size_changed" signal...
      
      	* app/core/gimpviewable.[ch]: ...and added it here.
      
      	* app/core/gimplayer.c: invalidate_preview(): always chain up,
      	also if it's a floating selection.
      
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.c: minor cleanups.
      
      	* app/gui/preferences-dialog.c: no need to invalidate the image
      	after we have invalidated all it's layers.
      
      	* app/core/gimpimage-mask.c
      	* app/gui/commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c: capitalized the SelectionCommand enum
      	values.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpnavigationpreview.[ch]: new widget.
      
      	* app/widgets/gimppreview.[ch]: added a non-working
      	non-dot-for-dot mode. Added xres/yres params to the
      	gimp_preview_calc_size() helper function.
      
      	Cache the "size" value which was passed to the simple function
      	variants (gimp_preview_new() and gimp_preview_set_size()) so we
      	can re-calculate the preview's extents on the underlying
      	viewable's "size_changed" signal and on gimp_preview_set_viewable().
      
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.c: changed accordingly.
      3ef20cd8
  21. 15 May, 2001 1 commit
    • Michael Natterer's avatar
      new directory app/base/ · d240f623
      Michael Natterer authored
      2001-05-15  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: new directory app/base/
      
      	* app/Makefile.am
      	* app/boundary.[ch]
      	* app/brush_scale.[ch]
      	* app/gimpchecks.h
      	* app/gimplut.[ch]
      	* app/pixel_processor.[ch]
      	* app/pixel_region.[ch]
      	* app/pixel_surround.[ch]
      	* app/temp_buf.[ch]
      	* app/tile.[ch]
      	* app/tile_cache.[ch]
      	* app/tile_manager.[ch]
      	* app/tile_manager_pvt.h
      	* app/tile_pvt.h
      	* app/tile_swap.[ch]: moved to base/
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/*: new directory for the sub-object pixel maniplation
      	and storage stuff. Does not include Gtk+ or anything outside
      	base/. Did some cleanup in all files.
      
      	* app/appenums.h
      	* app/apptypes.h
      	* app/core/gimpimage.h: removed types which are now in
      	base/base-types.h.
      
      	* app/base/base-config.[ch]
      	* app/gimprc.[ch]: put the config variables for base/ to their own
      	file so base/ doesn not have to include gimprc.h (does not yet
      	work, i.e. the variables are un-configurable right now)
      
      	* app/main.c: set a log handler for "Gimp-Base".
      
      	* app/paint-funcs/Makefile.am
      	* app/paint-funcs/paint-funcs.[ch]: removed the color hash which
      	maps RGB to color indices because it's a totally standalone system
      	which has nothing to do with the paint-funcs and introduced a
      	GimpImage dependency.
      
      	paint-funcs/ should be considered on the same sub-object
      	(glib-only) level as base/, only in a different directory.
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-colorhash.[ch]: put the color hash here.
      
      	* app/gimage.c: don't invalidate the color hash here...
      
      	* app/core/gimpimage.c: ... but in the colormap_changed() default
      	inplementation. Initialize the hash in class_init().
      
      	* tools/pdbgen/Makefile.am: scan app/base/base-types.h for enums.
      
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/[lots]
      	* app/core/[of]
      	* app/gui/[files]
      	* app/pdb/[all]
      	* app/tools/[over]
      	* app/widgets/[the]
      	* tools/pdbgen/pdb/[place]: changed #includes accordingly. And use
      	base_config->value instead of the stuff from gimprc.h.
      d240f623
  22. 09 May, 2001 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/core/ for the core object system. · 8985b107
      Michael Natterer authored
      2001-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/core/ for the core
      	object system.
      
      	* app/gimage_mask.[ch]
      	* app/gimpbrush-header.h
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpchannel.[ch]
      	* app/gimpcontainer.[ch]
      	* app/gimpcontext.[ch]
      	* app/gimpdata.[ch]
      	* app/gimpdatafactory.[ch]
      	* app/gimpdatalist.h
      	* app/gimpdrawable-desaturate.[ch]
      	* app/gimpdrawable-equalize.[ch]
      	* app/gimpdrawable-invert.[ch]
      	* app/gimpdrawable-offset.[ch]
      	* app/gimpdrawable-preview.[ch]
      	* app/gimpdrawable.[ch]
      	* app/gimpgradient.[ch]
      	* app/gimpimage-convert.[ch]
      	* app/gimpimage-duplicate.[ch]
      	* app/gimpimage-undo.[ch]
      	* app/gimpimage.[ch]
      	* app/gimplayer.[ch]
      	* app/gimplayermask.[ch]
      	* app/gimplist.[ch]
      	* app/gimpmarshal.[ch]
      	* app/gimpobject.[ch]
      	* app/gimppalette-import.[ch]
      	* app/gimppalette.[ch]
      	* app/gimppattern-header.h
      	* app/gimppattern.[ch]
      	* app/gimpundo.[ch]
      	* app/gimpundostack.[ch]
      	* app/gimpviewable.[ch]: removed these files...
      
      	* app/core/*: ...and added them here.
      
      	* app/*.c
      	* app/gui/*.c
      	* app/pdb/*.c
      	* app/tools/*.c
      	* app/widgets/*.c
      	* plug-ins/common/gbr.c
      	* plug-ins/common/gih.c
      	* plug-ins/common/pat.c
      	* po/POTFILES.in
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/*.pdb: changed accordingly.
      8985b107
  23. 08 May, 2001 1 commit
    • Michael Natterer's avatar
      added ChannelType. removed ChannelType. regenerated. · a229702d
      Michael Natterer authored
      2001-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: added ChannelType.
      	* app/gimpimage.h: removed ChannelType.
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/apptypes.h: don't include libgimpwidgets/gimpwidgetstypes.h
      	and widgets/widgets-types.h any more.
      
      	* app/devices.c
      	* app/gimpdnd.c
      	* app/gimprc.c
      	* app/lc_dialog.c
      	* app/gui/[many].c: include widgets/widgets-types.h
      
      	* app/tools/histogram_tool.h: include widgets/widgets-types.h here
      	because of an ugly dependency from pdb/color_cmds.c
      
      	* app/tools/tool_options_dialog.c
      
      	* app/widgets/widgets-types.h: include
      	libgimpwidgets/gimpwidgetstypes.h and apptypes.h so files in
      	widgets/ only have to include this file.
      
      	* app/widgets/*.c: include widgets-types.h instead of apptypes.h
      
      	* app/gimpdrawable-preview.c
      	* app/gui/gradient-editor.c: removed useless #includes.
      a229702d
  24. 03 May, 2001 1 commit
    • Michael Natterer's avatar
      don't #include "gui/color-select.h" · 07b8ffd4
      Michael Natterer authored
      2001-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c: don't #include "gui/color-select.h"
      
      	* app/disp_callbacks.[ch]: renamed gdisplay_drop_viewable() to
      	gdisplay_drop_pattern().
      
      	* app/gimpimage.[ch]: added new signals
      	"component_visibility_changed" and "component_active_changed" and
      	emit them in the resp. accessors.
      
      	* app/interface.c: removed old GimpPreview test code.
      
      	* app/widgets/Makefile.am
      	* app/apptypes.h
      	* app/widgets/gimpchannellistview.[ch]
      	* app/widgets/gimpcomponentlistitem.[ch]: new (unfinished) widgets.
      
      	* app/widgets/gimpdockbook.c: switch to the right-clicked notebook
      	page before showing the menu.
      
      	* app/widgets/gimpdrawablelistitem.[ch]: removed the protected
      	functions which make the toggle buttons look nicer...
      
      	* app/widgets/gimplistitem.[ch]: ...and added them here.
      
      	* app/widgets/gimpdrawablelistview.[ch]: virtualized set_image()
      	so subclasses can properly (dis)connect on image change.
      
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpimagepreview.[ch]: removed the calc_size()
      	functions which calculate the preview's aspect ratio...
      
      	* app/widgets/gimppreview.[ch]: ...and added then here as
      	protected functions.
      
      	* app/widgets/gimplayerlistitem.c: flush displays after changing
      	the layer mask's "apply" or "show" state.
      07b8ffd4
  25. 22 Apr, 2001 1 commit
    • Michael Natterer's avatar
      cleanup. · 90e8b4d7
      Michael Natterer authored
      2001-04-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am: cleanup.
      
      	* app/interface.c: #include "gimpui.h"
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c
      	* app/gui/test-commands.[ch]: changes for the image menu below.
      
      	* app/apptypes.h
      	* app/widgets/Makefile.am
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainermenuimpl.[ch]: new widgets. The actual
      	implemtation lives in a separate file because
      	gimpcontainermenu.c's code is identical to gimpcontainerview.c's
      	except for the base class. This will become an interface with Gtk 2.0.
      
      	* app/widgets/gimpimagedock.[ch]: a dock with an image menu. The
      	pages still don't follow the context correctly.
      
      	* app/widgets/gimpmenuitem.[ch]: a menu item with a preview.
      
      	* app/widgets/gimpdialogfactory.[ch]: pass a dock constructor to
      	the constructor and provide a method to create a new dock within
      	this factory's context.
      
      	* app/widgets/gimpdock.[ch]: removed the constructor because we
      	create only image docks now. Put the vbox into a main_vbox (which
      	also contains the image menu).
      
      	* app/widgets/gimpdockbook.[ch]: create new docks with the dialog
      	factory.
      
      	* app/gimpcontainer.[ch]
      	* app/gimpdata.[ch]
      	* app/gimpdatafactory.[ch]
      	* app/gimpdatalist.[ch]
      	* app/gimplist.[ch]
      	* app/gimpviewable.[ch]
      	* app/widgets/gimpbrushpreview.[ch]
      	* app/widgets/gimpcontainergridview.[ch]
      	* app/widgets/gimpcontainerlistview.[ch]
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdrawablelistitem.[ch]
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpdrawablepreview.[ch]
      	* app/widgets/gimplayerlistitem.[ch]
      	* app/widgets/gimplayerlistview.[ch]
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimppalettepreview.[ch]
      	* app/widgets/gimppatternpreview.[ch]
      	* app/widgets/gimppreview.[ch]: ass-sign some copyrights.
      90e8b4d7
  26. 19 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/commands.[ch] first version of the new layers and channels dialogs. · 8710fa89
      Michael Natterer authored
      2001-02-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/commands.[ch]
      	* app/menus.c: first version of the new layers and channels dialogs.
      
      	* app/gimpcontainergridview.c
      	* app/gimpcontainerlistview.c: allow creation with a NULL container.
      
      	* app/gimpdnd.[ch]: added generic DND functions for all drawable
      	types (not just setting the DND icon). Started to remove code
      	duplication.
      
      	* app/gimpdrawablepreview.c: with some magic calculations and ugly
      	assumptions the drawable previews now look exactly like in the old
      	L&C dialog.
      
      	* app/gimpimagepreview.c: no need to say "return" at the end of a
      	void function.
      
      	* app/gimppreview.[ch]: added the "is_popup" boolean also to the
      	default constructor. Call gimp_preview_set_viewable() before
      	calculating the preview size.
      8710fa89
  27. 07 Feb, 2001 3 commits
    • Michael Natterer's avatar
      allocate less temp_bufs by removing the "create_preview" virtual function · e0d11876
      Michael Natterer authored
      2001-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimppreview.[ch]: allocate less temp_bufs by removing the
      	"create_preview" virtual function and adding a "render" one.
      
      	Implementations have to call the new public function
      	gimp_preview_render_and_flush() to render their temp_bufs.
      	This way, e.g. the GimpPatternPreview can render the preview
      	directly from the pattern's mask.
      
      	* app/gimpdrawablepreview.c
      	* app/gimpimagepreview.c
      	* app/gimppatternpreview.c: changed accordingly.
      
      	* app/gimpbrushpreview.[ch]: same as above and added BrushPipe
      	popup animation.
      e0d11876
    • Michael Natterer's avatar
      app/Makefile.am new object with own implementations of "create_preview" · 6107e511
      Michael Natterer authored
      2001-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpimagepreview.[ch]: new object with own implementations
      	of "create_preview" and "create_popup".
      
      	* app/gimpdrawablepreview.c: stuff... still unused.
      
      	* app/gimppreview.c: fixed idle rendering crashes, don't
      	forget popups on GDK_2BUTTON_PRESS.
      
      	* app/app_procs.c: gimpbrushlist.h doesn't exist any more.
      
      	* app/gimpobject.h: removed the GimpObject typedef because it
      	is in apptypes.h
      6107e511
    • Michael Natterer's avatar
      V2001-02-07 Michael Natterer <mitch@gimp.org> · 5ffb34db
      Michael Natterer authored
      	* app/Makefile.am
      	* app/gimpdrawable-preview.[ch]: new files formerly known as
      	gimpdrawablepreview.[ch].
      
      	This is a new naming scheme for methods of objects which live
      	outside their object's file. The old name implied a derived object
      	(and is in fact now taken by a GimpPreview subclass, see below).
      
      	Further candidates for renaming are e.g. gimpdrawable-invert.[ch],
      	gimpimage-convert.[ch] etc.  Finaly, the main objects (image,
      	drawable) will go to their own directories together with their
      	subclasses.
      
      	* app/apptypes.h: added typedefs for the new objects:
      
      	* app/gimpbrushpreview.[ch]
      	* app/gimppatternpreview.[ch]: new subclasses of GimpPreview.
      
      	* app/gimpdrawablepreview.[ch]: contains a subclass of GimpPreview
      	now.
      
      	* app/gimpviewable.[ch]: renamed the virtual functions to
      	"get_preview" and "get_new_preview" to avoid confusion with the
      	new GimpPreview subclasses.
      
      	* app/gimppreview.[ch]: virtualized "create_preview" and
      	"create_popup".
      
      	* app/gimpmarshal.[ch]: new marsaller for GimpPreview.
      
      	* app/channels_dialog.c
      	* app/fileops.c
      	* app/gimpbrush.c
      	* app/gimpdnd.c
      	* app/gimpdrawable.c
      	* app/gimpimage.c
      	* app/gimppattern.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/lc_dialog.c
      	* app/nav_window.c
      	* app/palette_import.c
      	* app/undo_history.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      5ffb34db
  28. 04 Feb, 2001 2 commits
    • Michael Natterer's avatar
      app/Makefile.am app/apptypes.h new object. Everything that can have a · f029c6b5
      Michael Natterer authored
      2001-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimpviewable.[ch]: new object. Everything that can have a
      	preview will be a GimpViewable. The virtual functions are
      	"invalidate_preview", "preview" and "preview_new".
      
      	* app/gimpmarshal.[ch]: new marshaller needed for the viewable.
      
      	* app/gimpdrawable.[ch]
      	* app/gimpimage.[ch]: derived from GimpViewable. Removed the
      	preview stuff from the public interface.
      
      	Made a single boolean out of GimpImage's "comp_preview_valid"
      	array because we have only one copposite preview.
      
      	* app/gimplayer.c: made the preview stuff private.
      
      	* app/gimppreviewcache.[ch]: removed gimp_preview_scale()...
      
      	* app/temp_buf.[ch]: ...and added it as temp_buf_scale() here.
      
      	* app/gimpdrawablepreview.[ch]: is a private method of
      	GimpDrawable now.
      
      	* app/channels_dialog.c
      	* app/convert.c
      	* app/drawable.c
      	* app/fileops.c
      	* app/floating_sel.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimpchannel.c
      	* app/gimpcontainer.c
      	* app/gimpdnd.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/lc_dialog.c
      	* app/nav_window.c
      	* app/palette_import.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/tools/crop.c
      	* app/tools/edit_selection.c
      	* app/tools/ink.c
      	* app/tools/paint_core.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* po/POTFILES.in: changed accordingly.
      f029c6b5
    • Nick Lamb /GIMP's avatar
      4f89fdde
  29. 03 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · c46bdc37
      Michael Natterer authored
      2001-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpset.[ch]: removed.
      
      	* app/gimpcontainer.[ch]: some minor fixes, cleanup.
      
      	* app/context_manager.[ch]: made the "image_context" a GimpContainer
      	and moved it here...
      
      	* app/appenv.h
      	* app/main.c: ...from here.
      
      	* app/app_procs.c
      	* app/colormap_dialog.[ch]
      	* app/commands.c
      	* app/gimage.c
      	* app/gimpcontext.c
      	* app/gimpimage.c
      	* app/info_window.c
      	* app/lc_dialog.c
      	* app/lut_funcs.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/palette_import.c
      	* app/paths_dialog.c
      	* app/pixel_region.c
      	* app/scale.c
      	* app/scroll.c
      	* app/selection.c
      	* app/temp_buf.c
      	* app/undo.c
      	* app/pdb/procedural_db.c
      	* app/tools/by_color_select.c
      	* app/tools/clone.c
      	* app/tools/color_balance.c
      	* app/tools/color_picker.c
      	* app/tools/convolve.c
      	* app/tools/crop.c
      	* app/tools/curves.c
      	* app/tools/paint_core.c
      	* app/tools/transform_core.c: s/GimpSet/GimpContainer/g, removed
      	many useless #include "appenv.h".
      
      	* app/gimpdrawablepreview.c
      	* app/gdisplay.c: found two badly crashing bugs i have introduced
      	with my last changes here.
      c46bdc37
  30. 01 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/gimpchannel.[ch] new files moved here by Yosh. · dde74f97
      Michael Natterer authored
      2001-02-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpchannel.[ch]
      	* app/gimplayer.[ch]: new files moved here by Yosh.
      
      	* app/channel.[ch]
      	* app/layer.[ch]: removed.
      
      	* app/gdisplay.c: cleanup stuff.
      
      	* app/[lotsa files].c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed includes accordingly.
      dde74f97
  31. 29 Jan, 2001 2 commits
    • Michael Natterer's avatar
      removed channel_update() because channel.c should not call · df0bbb26
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel.[ch]: removed channel_update() because channel.c
      	should not call gdisplays_update(). Use drawable_update() and
      	a subsequent gdisplays_update() instead.
      
      	* app/qmask.c: do as described above.
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/commands.c
      	* app/convert.c
      	* app/disp_callbacks.c
      	* app/equalize.c
      	* app/fileops.c
      	* app/floating_sel.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimpdnd.c
      	* app/gimpdrawablepreview.c
      	* app/gimphistogram.c
      	* app/gimplayermask.c
      	* app/global_edit.c
      	* app/histogramwidget.c
      	* app/histogramwidget.h
      	* app/image_map.c
      	* app/image_new.c
      	* app/invert.c
      	* app/layer.c
      	* app/layer_select.c
      	* app/paths_dialog.c
      	* app/plug_in.c
      	* app/scan_convert.c
      	* app/undo_history.c
      	* app/xcf.c: include gimpdrawable.h instead of drawable.h where
      	possible, removed useless includes, minor other cleanups.
      df0bbb26
    • Michael Natterer's avatar
      app/Makefile.am new file with one set of functions... · bd7a4bf1
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpdrawablepreview.[ch]: new file with one set of functions...
      
      	* app/channel.[ch]
      	* app/layer.[ch]: ...instead of having everything duplicated three
      	times here.
      
      	* app/channels_dialog.c
      	* app/floating_sel.c
      	* app/floating_sel.h
      	* app/gimpdnd.c
      	* app/gimpimage.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/selection.c
      	* app/pdb/drawable_cmds.c
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly, cleanup.
      bd7a4bf1