1. 19 Jul, 2005 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new files keeping the render acceleration check · 19ea2a9d
      Michael Natterer authored
      2005-07-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimprender.[ch]: new files keeping the render
      	acceleration check buffers.
      
      	* app/display/gimpdisplayshell-render.[ch]: removed them here.
      
      	* app/gui/gui.c: initialize/shutdown the new buffers.
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpviewrenderer.c
      	* app/widgets/gimpviewrenderergradient.c
      	* app/actions/view-actions.c
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell.c: use the new stuff. Removes
      	lots of broken widgets -> display dependencies.
      19ea2a9d
  2. 08 May, 2005 1 commit
    • Sven Neumann's avatar
      inline tile_manager_get_tile_num(). · 3bb2f799
      Sven Neumann authored
      2005-05-09  Sven Neumann  <sven@gimp.org>
      
      	* app/base/tile-manager.c: inline tile_manager_get_tile_num().
      
      	* app/display/gimpdisplayshell-render.c (render_image_tile_fault):
      	reverted one of the changes I did here earlier.
      3bb2f799
  3. 28 Apr, 2005 1 commit
  4. 27 Apr, 2005 4 commits
    • Sven Neumann's avatar
      spare a few CPU cycles. · 5953d527
      Sven Neumann authored
      2005-04-28  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c: spare a few CPU cycles.
      5953d527
    • Sven Neumann's avatar
      removed redundant check. · 928b4f23
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/base/tile-manager.c (tile_manager_get_tile): removed
      	redundant check.
      
      	* app/display/gimpdisplayshell-render.c: don't access the next
      	tile if we are at the end of the render loop anyway.
      928b4f23
    • Sven Neumann's avatar
      removed unused byte_order variables. · 1b142e3b
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c: removed unused byte_order
      	variables.
      1b142e3b
    • Sven Neumann's avatar
      declared the return value of gimp_image_get_colormap() as const. · 61d6c935
      Sven Neumann authored
      2005-04-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-colormap.[ch]: declared the return value of
      	gimp_image_get_colormap() as const.
      
      	* app/display/gimpdisplayshell-render.c: added some const qualifiers.
      61d6c935
  5. 01 Oct, 2004 1 commit
    • Sven Neumann's avatar
      no need to include gimpdisplayshell-render.h here. · 297b53a4
      Sven Neumann authored
      2004-10-01  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c: no need to include
      	gimpdisplayshell-render.h here.
      
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-render.[ch]
      
      	* app/display/gimpdisplayshell.[ch]: added an API to highlight a
      	rectangle (specified in image coordinates). Actually it doesn't
      	highlight but dims the area outside the rectangle.
      
      	* app/tools/gimpcroptool.c: use the new functionality to show the
      	area to be cropped. Fixes bug #93360.
      297b53a4
  6. 03 Sep, 2004 1 commit
    • Sven Neumann's avatar
      libgimpbase/Makefile.am libgimpbase/gimpchecks.[ch] added · 4fbc8764
      Sven Neumann authored
      2004-09-03  Sven Neumann  <sven@gimp.org>
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpchecks.[ch] added gimp_checks_get_shades().
      
      	* app/base/temp-buf.c
      	* app/display/gimpdisplayshell-render.c
      	* libgimpwidgets/gimppreviewarea.c: use the new function instead
      	of replicating these numbers in three different places.
      4fbc8764
  7. 02 Sep, 2004 2 commits
    • Sven Neumann's avatar
      light and dark check color were swapped for GIMP_CHECK_TYPE_GRAY_CHECKS. · 3f4de431
      Sven Neumann authored
      2004-09-02  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c (check_combos): light and
      	dark check color were swapped for GIMP_CHECK_TYPE_GRAY_CHECKS.
      
      	* libgimpwidgets/gimppreviewarea.[ch]: added "check-size" and
      	"check-type" properties and draw the checkerboard accordingly.
      3f4de431
    • Sven Neumann's avatar
      app/base/base-enums.[ch] moved GimpCheckSize and GimpCheckType enums to · b9bd1bfa
      Sven Neumann authored
      2004-09-02  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.[ch]
      	* libgimpbase/gimpbaseenums.[ch]: moved GimpCheckSize and
      	GimpCheckType enums to libgimpbase. Correctly prefix the enum
      	values.
      
      	* app/base/temp-buf.c
      	* app/config/gimpdisplayconfig.c
      	* app/display/gimpdisplayshell-render.c
      	* app/pdb/fileops_cmds.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      b9bd1bfa
  8. 13 Jul, 2004 1 commit
  9. 04 Feb, 2004 1 commit
    • Michael Natterer's avatar
      use gdouble instead of gfloat for x and y scale factors so gfloat's · d88c150c
      Michael Natterer authored
      2004-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c (struct RenderInfo)
      	(render_image_accelerate_scaling): use gdouble instead of gfloat
      	for x and y scale factors so gfloat's limited precision can't add
      	up to off-by-one pixel errors. Fixes display artefacts (missing
      	updates) at the bottom and right sides of updated areas at certain
      	irrational zoom factors like 1:3.
      d88c150c
  10. 21 Nov, 2003 1 commit
    • Michael Natterer's avatar
      forgot to declare gimp_color_display_stack_clone(). · 32bc599d
      Michael Natterer authored
      2003-11-21  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpcolordisplaystack.h: forgot to declare
      	gimp_color_display_stack_clone().
      
      	* app/display/gimpdisplayshell.[ch]: replaced the GList of
      	GimpColorDisplays by a single GimpColorDisplayStack.
      
      	* app/display/gimpdisplayshell-render.c
      	(gimp_display_shell_render): changed accordingly.
      
      	* app/display/gimpdisplayshell-filter.[ch]: reduced API to a
      	single function, gimp_display_shell_filter_set(), which exchanges
      	the whole filter stack. Idle update the display on
      	GimpColorDisplayStack::update().
      
      	* app/display/gimpdisplayshell-filter-dialog.[ch]: changed
      	accordingly.  Return the created dialog instead of assigning
      	shell->filters_dialog.
      
      	* app/gui/view-commands.c (view_display_filters_cmd_callback): set
      	shell->filters_dialog here and raise it it if already
      	exists. Don't use the dialog factory to create it because it's a
      	transient dialog for the display which does not need to be session
      	managed.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c: removed display filter dialog stuff.
      32bc599d
  11. 15 Nov, 2003 1 commit
    • Sven Neumann's avatar
      no need to set colors on the GCs that use GDK_INVERT. · db4ec041
      Sven Neumann authored
      2003-11-15  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpcanvas.c (gimp_canvas_gc_new): no need to set
      	colors on the GCs that use GDK_INVERT.
      
      	* app/display/gimpdisplayshell-render.c (gimp_display_shell_render):
      	micro cleanup.
      db4ec041
  12. 10 Nov, 2003 1 commit
    • Sven Neumann's avatar
      app/display/gimpcanvas.[ch] moved GC from the the draw tool to GimpCanvas. · 058764f4
      Sven Neumann authored
      2003-11-10  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpcanvas.[ch]
      	* app/tools/gimpdrawtool.[ch]: moved GC from the the draw tool to
      	GimpCanvas. Added wrappers around GDK drawing functions and do all
      	canvas drawing by means of these new functions.
      
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpfuzzyselecttool.c: draw using the new GimpCanvas
      	functions.
      058764f4
  13. 09 Nov, 2003 1 commit
    • Sven Neumann's avatar
      app/display/Makefile.am app/display/display-types.h added GimpCanvas, · 621c5832
      Sven Neumann authored
      2003-11-10  Sven Neumann  <sven@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpcanvas.[ch]: added GimpCanvas, derived from
      	GtkDrawingArea.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell.[ch]
      621c5832
  14. 04 Apr, 2003 1 commit
  15. 01 Apr, 2003 1 commit
    • Michael Natterer's avatar
      #define GIMP_VIEWABLE_MAX_PREVIEW_SIZE here. · fdb7265a
      Michael Natterer authored
      2003-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.h: #define GIMP_VIEWABLE_MAX_PREVIEW_SIZE
      	here.
      
      	* app/widgets/gimppreview.h
      	* app/widgets/gimppreviewrenderer.h: removed the #defines here.
      
      	* app/core/gimpviewable.c (gimp_preview_get[_popup]_size): check
      	the return values to be within bounds.
      
      	* app/text/gimpfont.c
      	* app/display/gimpdisplayshell-render.c: use the new constant
      	instead of the magic "1024".
      
      	* app/core/gimpdrawable-preview.c: #include our own header file.
      
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenu.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainerview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimppreviewrenderer.c: changed accordingly.
      fdb7265a
  16. 21 Mar, 2003 1 commit
    • Sven Neumann's avatar
      don't emit the "scaled" signal from gimp_display_shell_scale_setup(). Emit · 6fb7877e
      Sven Neumann authored
      2003-03-21  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-scale.c: don't emit the "scaled"
      	signal from gimp_display_shell_scale_setup(). Emit it explicitely
      	from gimp_display_shell_scale_resize() instead.
      
      	* app/display/gimpdisplayshell-scroll.c: call
      	gimp_display_shell_scale_setup() after scrolling in order to
      	update scrollbars and rulers.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c: emit the "scaled" signal
      	explicitely.
      
      	* app/display/gimpdisplayshell-render.c: minor optimizations.
      
      	* app/display/gimpdisplayshell.c: minor cleanup.
      6fb7877e
  17. 19 Mar, 2003 1 commit
  18. 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
  19. 24 Feb, 2003 1 commit
    • Michael Natterer's avatar
      removed gimp_displays_invalidate() again. · 0bd9abbf
      Michael Natterer authored
      2003-02-24  Michael Natterer  <mitch@convergence.de>
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gimp_displays_invalidate() again.
      
      	* app/display/gimpdisplayshell-render.c: don't call it.
      
      	* app/display/gimpdisplayshell-handlers.c
      	(gimp_display_shell_check_notify_handler): put the call to
      	gimp_display_shell_expose_full() back I "optimized" away a few
      	days ago.
      0bd9abbf
  20. 21 Feb, 2003 2 commits
    • Sven Neumann's avatar
      added new function gimp_displays_invalidate() which queues a redraw on all · 9c957fa1
      Sven Neumann authored
      2003-02-21  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplay-foreach.[ch]: added new function
      	gimp_displays_invalidate() which queues a redraw on all displays
      	by calling gimp_display_shell_expose_full().
      
      	* app/display/gimpdisplayshell-render.c (render_setup_notify):
      	invalidate all displays when the transparency type or size changes.
      
      	* app/tools/gimptexttool.c (text_tool_button_press): readded some
      	code I accidentally removed in my last commit.
      
      	* app/text/gimptextlayout.c (gimp_text_layout_new): always set the
      	font size but make sure it is at least 1.
      9c957fa1
    • Sven Neumann's avatar
      replaced a for-loop with a call to memcpy(). · 1b0339ad
      Sven Neumann authored
      2003-02-21  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c (render_image_rgb):
      	replaced a for-loop with a call to memcpy().
      
      	* app/display/gimpdisplay.c: use g_memdup() instead of g_new()
      	followed by memcpy().
      1b0339ad
  21. 05 Jan, 2003 1 commit
  22. 04 Dec, 2002 1 commit
    • Sven Neumann's avatar
      removed useless assignments. · 8a678c09
      Sven Neumann authored
      2002-12-04  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell-render.c (render_image_tile_fault):
      	removed useless assignments.
      
      	* plug-ins/common/aa.c: removed wrong assertions that caused the
      	plug-in to crash on images with odd width or height (#100344).
      	Added support for RGB images as well as alpha channel while I was
      	on it.
      8a678c09
  23. 21 Nov, 2002 1 commit
    • Michael Natterer's avatar
      added tile_cache_init() and tile_cache_exit() as public functions. · 024061d9
      Michael Natterer authored
      2002-11-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/tile-cache.[ch]: added tile_cache_init() and
      	tile_cache_exit() as public functions.
      
      	* app/base/base.c: call them. Connect to GimpBaseConfig's
      	notify::tile-cache-size.
      
      	* app/core/gimpimage.c: connect to notify::transparency-type and
      	notify::transparency-size and call
      	gimp_image_invalidate_layer_previews() in the callback.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gdisplays_expose_full().
      
      	* app/display/gimpdisplayshell-handlers.c: connect to
      	notify::transparency-type and notify::transparency-size and expose
      	the shell in the callback.
      
      	* app/display/gimpdisplayshell-render.[ch]: added render_init()
      	and render_exit() functions and connect to
      	notify::transparency-type and notify::transparency-size for
      	setting up the render buffers.
      
      	* app/gui/gui.c: call the new functions instead of render_setup().
      	Connect to notify::show-tool-tips.
      
      	* app/gui/preferences-dialog.c: copy values between the global
      	config object and its local clone only when they have changed.
      	Wrap setting of lots of values in g_object_[freeze|thaw]_notify().
      	Added lots of mnemonics.
      
      	* app/gui/resolution-calibrate-dialog.c: added mnemonics.
      
      	* app/widgets/gimppropwidgets.c: g_object_set() the values edited
      	by the gimp_prop_coordinates() much less often by remembering the
      	old values and setting them only when they have changed.
      024061d9
  24. 18 Nov, 2002 1 commit
    • Sven Neumann's avatar
      Finally landed the new GimpConfig based gimprc parser. It's not finished · 073e533a
      Sven Neumann authored
      2002-11-18  Sven Neumann  <sven@gimp.org>
      
      	Finally landed the new GimpConfig based gimprc parser. It's not
      	finished yet but we need to start somewhere. This release removes
      	the old gimprc.[ch] files. The gimprc format changes slightly, but
      	the changes are minimal. The Preferences dialog is temporarily
      	disabled since it still needs to be ported. If you are are afraid,
      	stay away from CVS for a few days ;-)
      
      	* app/Makefile.am
      	* app/gimprc.[ch]: removed the old gimprc system.
      
      	* app/base/Makefile.am
      	* app/base/base-config.[ch]: removed these files in favor of
      	config/gimpbaseconfig.[ch].
      
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: removed these files in favor of
      	config/gimpcoreconfig.[ch].
      
      	* app/config/Makefile.am
      	* app/config/config-types.h: moved typedefs into this new file.
      
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpdisplayconfig.[ch]
      	* app/config/gimpguiconfig.[ch]
      	* app/config/gimprc.[ch]
      	* app/config/test-config.c: brought into shape for real use.
      
      	* app/base/base-types.h: include config/config-types.h here. Added
      	a global GimpBaseConfig *base_config variable to ease migration.
      
      	* app/gui/Makefile.am: temporarily disabled the preferences dialog.
      
      	* app/app_procs.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/base/base.[ch]
      	* app/base/gimphistogram.c
      	* app/base/pixel-processor.c
      	* app/base/temp-buf.c
      	* app/base/tile-cache.c
      	* app/core/core-types.h
      	* app/core/gimp-documents.c
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpmodules.c
      	* app/core/gimppattern.c
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpnavigationview.c
      	* app/file/file-save.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/session.c
      	* app/gui/test-commands.c
      	* app/gui/tips-dialog.c
      	* app/gui/tips-dialog.h
      	* app/gui/user-install-dialog.c
      	* app/gui/view-commands.c
      	* app/paint/gimppaintcore.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimptexttool.[ch]
      	* app/tools/selection_options.c
      	* app/tools/tools.c
      	* app/tools/transform_options.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimpselectioneditor.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: use the new config system
      	instead of the old gimprc stuff.
      
      	* etc/gimprc.in
      	* etc/gimprc_user.in: adapted to the new gimprc format. Will update
      	the man-page later...
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpgimprc_pdb.c: regenerated.
      073e533a
  25. 20 Oct, 2002 2 commits
    • Michael Natterer's avatar
      removed the ColorDisplayNode struct entirely. GimpDisplayShell->filters is · 079b768e
      Michael Natterer authored
      2002-10-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-filter.[ch]: removed the
      	ColorDisplayNode struct entirely. GimpDisplayShell->filters is now
      	just a GList of GimpColorDisplay objects.
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-render.c: changed accordingly.
      079b768e
    • Michael Natterer's avatar
      Ported module loading to GTypeModule, getting rid of all own module · d7055a33
      Michael Natterer authored
      2002-10-20  Michael Natterer  <mitch@gimp.org>
      
      	Ported module loading to GTypeModule, getting rid of all own
      	module registering/bookkeeping stuff for color selectors and
      	display filters. The modules now simply register GimpColorSelector
      	and GimpColorDisplay subclasses, the list of registered subclasses
      	can then be obtained calling g_type_children() on the abstract
      	base classes.
      
      	This is work in progress and just the first working state after I
      	started breaking everything...
      
      	* app/gui/color-select.[ch]
      	* libgimp/gimpcolordisplay.h
      	* libgimp/gimpcolorselector.h: removed.
      
      	* app/gui/Makefile.am
      	* libgimp/Makefile.am: changed accordingly.
      
      	* libgimp/gimpmodule.h: massively simplified. All voodoo is gone.
      
      	* libgimpwidgets/gimpcolordisplay.[ch]
      	* libgimpwidgets/gimpcolorselector.[ch]: new abstract base classes
      	which need to be subclassed by modules.
      
      	* libgimpwidgets/gimpcolorselect.[ch]: the built-in color selector
      	from app/gui/color-select.* ported to be a GimpColorSelector
      	subclass.
      
      	* libgimpwidgets/Makefile.am
      	* libgimpwidgets/gimpwidgets.h
      	* libgimpwidgets/gimpwidgetsmarshal.list
      	* libgimpwidgets/gimpwidgetstypes.h: changed accordingly.
      
      	* app/core/gimpmoduleinfo.[ch]: made it a GTypeModule subclass
      
      	* app/core/gimpmodules.c: changed accordingly.
      
      	* app/core/gimpcontainer.c
      	* app/core/gimplist.c: HACKED around to allow GimpLists of
      	GObjects (not GimpObjects). This is EEKy, so I will either make
      	gimp->modules a simple GList and revert this bit of change, or
      	allow GObjects all over the place in GimpContainer land...
      
      	* app/display/gimpdisplayshell-filter.[ch]
      	* app/gui/color-notebook.c: removed all module stuff and use
      	g_type_children() to get the list of available color_selectors
      	and display_filters.
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/module-browser.c: changed accordingly.
      
      	* app/gui/gui.c: ref the built-in color selector's class before
      	the modules are queried so it appears first in the list of
      	GimpColorSelector's children.
      
      	* modules/Makefile.am: build the water color selector again.
      
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c: ported them all to the new API.
      
      	* modules/gimpmodregister.[ch]: removed the old EMX module hack.
      d7055a33
  26. 22 Aug, 2002 1 commit
  27. 26 Jun, 2002 1 commit
    • Michael Natterer's avatar
      removed gdisp->scale, gdisp->dot_for_dot, the scaling marcos and the · fa537489
      Michael Natterer authored
      2002-06-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplay.[ch]: removed gdisp->scale,
      	gdisp->dot_for_dot, the scaling marcos and the
      	gdisplay_[un]transform[_f]() functions.
      
      	* app/display/gimpdisplayshell.[ch]: added them here. Named the
      	transform functions gimp_display_shell_[un]transform_xy[_f]().
      
      	Made the gimp_display_shell_[un]transform_coords() functions copy
      	all values of the GimpCoords struct, not just x and y.
      
      	* app/display/gimpstatusbar.[ch]: keep a pointer to
      	GimpDisplayShell, not GimpDisplay.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpnavigationview.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/select-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpvectortool.c: changed accordingly.
      
      	* app/gui/layers-commands.c: if(gimage->selection_mask) is always
      	TRUE, use if(!gimp_image_mask_is_empty(gimage)) instead.
      
      	* app/tools/gimpfuzzyselecttool.[ch]: moved global variables
      	to the object struct.
      fa537489
  28. 15 Mar, 2002 1 commit
    • Michael Natterer's avatar
      renamed shell->cd_list to shell->filters and shell->cd_ui to · 1b200856
      Michael Natterer authored
      2002-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: renamed shell->cd_list to
      	shell->filters and shell->cd_ui to shell->filters_dialog.
      
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell-filter.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      	* app/display/gimpdisplayshell-filter-dialog.c: cleaned up the GUI.
      	Still deprecated GtkCLists around...
      
      	* app/widgets/gimpeditor.[ch]: added gimp_editor_new().
      
      	* app/gui/image-commands.[ch]
      	* app/gui/menus.c: added "<Image>/Image/Crop Image" because i was
      	sick of clicking 20 times just to crop to the current selection.
      
      	* themes/Default/gtkrc: removed "gimp-dock-style" and changed
      	"gimp-gtk-icons" to "gimp-default-style". Set our widget class
      	style property defaults there.
      1b200856
  29. 14 Mar, 2002 1 commit
    • Michael Natterer's avatar
      Re-enabled the display filters. They work exactly the same way as before · 5e17408c
      Michael Natterer authored
      2002-03-14  Michael Natterer  <mitch@gimp.org>
      
      	Re-enabled the display filters. They work exactly the same way
      	as before except for the color_area pseudo-display. More stuff
      	to come...
      
      	* app/display/Makefile.am: build them again.
      
      	* app/display/gimpdisplayshell-filter-dialog.[ch]
      	* app/display/gimpdisplayshell-filter.[ch]: changed to the new
      	namespace, work on GimpDisplayShell instead of GimpDisplay.
      
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell.[ch]: changed accordingly.
      
      	* app/gui/dialogs-constructors.c: enabled the dialog constructor.
      
      	* app/gui/gui.c: call the init() function.
      
      	* app/gui/menus.c: enabled the menu entry, but moved it to
      	<Image>/View. Moved "Undo History..." to <Image>/Image.
      
      	* modules/Makefile.am: build and install the modules.
      
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c: made them compile with minimal
      	changes.
      
      	Unrelated:
      
      	* app/undo_history.c: connect to the image's "disconnect", not
      	"destroy" signal.
      
      	* app/tools/gimpselectiontool.c: mask out the irrelevant parts of
      	the "state" passed to the modifier_key() func, so tool_options
      	button toggling works with other modifiers (e.g. num_lock)
      	pressed.
      5e17408c
  30. 04 Mar, 2002 1 commit
    • Michael Natterer's avatar
      Forgot some gint opacity values: · 95235369
      Michael Natterer authored
      2002-03-04  Michael Natterer  <mitch@gimp.org>
      
      	Forgot some gint opacity values:
      
      	* app/core/gimplayer.[ch]: layer->opacity, gimp_layer_new(),
      	gimp_layer_new_from_tiles()
      
      	* app/core/gimpimage-projection.[ch]: gimp_image_projection_opacity()
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/gui/layers-commands.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimplayerlistview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.c: regenerated.
      95235369
  31. 14 Dec, 2001 1 commit
    • Michael Natterer's avatar
      added GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and · 37269769
      Michael Natterer authored
      2001-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added
      	GIMP_IMAGE_TYPE_IS_[RGB|GRAY|INDEXED]() and
      	GIMP_IMAGE_TYPE_BASE_TYPE() macros.
      
      	* app/plug-in/plug-in.[ch]: new enum PlugInImageType instead of
      	multiple #defines.
      
      	* app/gui/file-dialog-utils.[ch]: file_dialog_update_menus(): take
      	a GimpImageType instead of the PlugInImageType.
      
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: use the new macros, cleanups like
      	storing GimpImageType in GimpImageType variables, not just gint.
      
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/widgets/gimpdialogfactory.c: save the state of the "Auto"
      	button in sessionrc.
      37269769
  32. 11 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/base/base-enums.h moved all remaining enums to base-enums.h · 03a6c044
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-enums.h
      	* app/base/base-types.h: moved all remaining enums to base-enums.h
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved GimpImageType to core-enums.h and
      	changed the values from RGB_GIMAGE to GIMP_RGB_IMAGE and the like.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/file-save-dialog.c
      	* app/gui/toolbox.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpdodgeburntool.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: no need to parse app/base/base-types.h
      	any longer.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      03a6c044
  33. 08 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new file that holds enums that are registered with · a65e1a39
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-enums.h: new file that holds enums that are registered
      	with the type system and is used to generate core-enums.c.
      
      	* app/core/core-types.h: include core-enums.h
      
      	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
      	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
      	enum ...
      
      	* app/base/base-enums.h: ... here.
      
      	* app/image_map.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/brush-select.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpwidgets-constructors.[ch]
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      
      	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
      	enums any longer.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
      	left over from some very early gimp days.
      
      	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
      a65e1a39
  34. 30 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/display/Makefile.am removed. It was a wrapper around nothing since we · 57157b40
      Michael Natterer authored
      2001-11-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/gximage.[ch]: removed. It was a wrapper around
      	nothing since we use GdkRGB.
      
      	* app/display/gimpdisplayshell-render.[ch]: added the render
      	buf size defines here, added the #if 0'ed display filter stuff
      	and the actual GdkRGB render stuff here too.
      
      	* app/display/gimpdisplayshell.[ch]: added shell->render_buf as
      	replacement for the global gximage buffer, renamed shell->scroll_gc
      	to shell->render_gc and use it all over the place when rendering
      	image data.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-scroll.c: changed accordingly.
      
      	* app/gui/gui.c: don't call gximage init/exit stuff.
      57157b40