1. 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
  2. 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
  3. 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
  4. 04 Apr, 2003 1 commit
  5. 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
  6. 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
  7. 19 Mar, 2003 1 commit
  8. 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
  9. 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
  10. 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
  11. 05 Jan, 2003 1 commit
  12. 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
  13. 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
  14. 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
  15. 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
  16. 22 Aug, 2002 1 commit
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 28 Nov, 2001 2 commits
    • Michael Natterer's avatar
      include the new "paint-funcs/paint-funcs-types.h". · 6cf34005
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/base-types.h: include the new
      	"paint-funcs/paint-funcs-types.h".
      
      	* app/paint-funcs/Makefile.am
      	* app/paint-funcs/paint-funcs-types.h: new file. Includes
      	"base/base-types.h".
      
      	* app/paint-funcs/paint-funcs.[ch]: removed the enums here,
      	include "paint-funcs-types.h".
      
      	* app/widgets/widgets-types.h: include "display/display-types.h"
      
      	* app/display/display-types.h: include "widgets/widgets-types.h".
      
      	* app/tools/tools-types.h: include "display/display-types.h"
      
      	* app/gui/gui-types.h: include "tools/tools-types.h".
      
      	The order of namespaces/dependencies should be (but is not):
      
      	(base, paint-funcs) -> (core, file, xcf, pdb) ->
      	(widgets, display) -> tools -> gui
      
      	* app/path.c: include "tools/tools-types.h".
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-guides.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-scale.[ch]: new files.
      
      	* app/core/gimpimage.[ch]: removed the stuff which is in the new
      	files. Reordered all functions in both the .h and .c files,
      	commented the groups of functions.
      
      	* app/core/gimpcontainer.c: create the handler_id using a counter,
      	not the address of a pointer, because the address *may* be the
      	same twice, added debugging output.
      
      	* app/core/gimpviewable.[ch]: added primitive support for getting
      	a preview GdkPixbuf.
      
      	* app/nav_window.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.[ch]
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/xcf/xcf-load.c: changed accordingly, some cleanup.
      
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly, reordered functions.
      
      	* app/plug_in.c: set the labels of the "Repeat" and "Re-Show" menu
      	items to the name of the last plug-in (Fixes #50986).
      
      	* app/display/gimpdisplayshell.[ch]: set the labels of "Undo" and
      	"Redo" to the resp. undo names. Much simplified the WM icon stuff
      	by removing most code and using gimp_viewable_get_new_preview_pixbuf().
      
      	* app/widgets/gimpbrushfactoryview.c: forgot to assign the GQuark
      	returned by gimp_container_add_handler().
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpimage_pdb.[ch]: regenerated.
      6cf34005
    • Michael Natterer's avatar
      app/core/Makefile.am new files. Changed function names to be consistent. · 9bac8faf
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-projection.[ch]: new files. Changed function
      	names to be consistent.
      
      	* app/core/gimpimage.[ch]: removed the projection stuff
      	here. Removed the gimp_image_composite_blah() functions becauee
      	they were just calling the resp. gimp_image_projection ones.
      
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimppalette-import.c
      	* app/undo.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/info-window.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      9bac8faf
  26. 02 Nov, 2001 1 commit
    • Michael Natterer's avatar
      app/display/Makefile.am app/display/gimpdisplay-callbacks.[ch] · d162376d
      Michael Natterer authored
      2001-11-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]: removed and added as
      	gimpdisplayshell-foo.[ch] because they are all methods of the
      	shell.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: moved the "offset" and "size"
      	variables from GimpDisplay to GimpDisplayShell. GimpDisplay
      	should know nothing about screen coordinates.
      
      	The gdisplay_[un]transform_foo() methods are still part of
      	GimpDisplay but will be moved to GimpDisplayShell as soon as the
      	tools' vitrual functions speak in image coordinates instead of
      	GdkEvents.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: prefixed all
      	functions with gimp_display_shell_*. Moved some stuff to a
      	"realize" callback File still has to be renamed.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gdisplays_shrink_wrap().
      
      	* app/gui/menus.c
      	* app/gui/view-commands.[ch]
      	* app/display/gimpdisplayshell-scale.[ch]: implemented "Zoom to
      	Fit Window" function (#57670).
      
      	* app/nav_window.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.[ch]
      	* app/display/gimpdisplayshell-scale.[ch]
      	* app/display/gimpdisplayshell-scroll.[ch]
      	* app/gui/colormap-dialog.c
      	* app/gui/gui.c
      	* app/gui/preferences-dialog.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/widgets/gimppreview.c: changed according to variable
      	and filename changes.
      
      	* app/tools/tool_manager.c: tool_manager_select_tool(): send the
      	active tool a "HALT" command before selecting the new one. Fixes
      	stale tool dialogs which were there because some other hack was
      	removed (This is IMHO the right place to shut down the active
      	tool).
      
      	* app/tools/gimpcroptool.c: don't shrink wrap after cropping but
      	let gimprc.allow_resize_windows decide.
      
      	* app/tools/gimpselectiontool.c: gimage_mask_value() takes image,
      	not screen coordinates. A good example of how braindead it is to
      	pass GdkEvents to tools :-) Fixes incorrect cursor and oper
      	update of the selection tools.
      
      	* app/tools/gimptransformtool.c
      	* app/undo.c: removed (#if 0 for now) some strange code which did
      	manual exposing of GimpDisplayShell areas. This was definitely a
      	hack and should not be there given the image emits correct
      	"update" signals.
      d162376d
  27. 31 Oct, 2001 1 commit
  28. 22 Oct, 2001 1 commit
    • Michael Natterer's avatar
      General cleanup of the selection tools and their PDB wrappers: · 99e78c70
      Michael Natterer authored
      2001-10-22  Michael Natterer  <mitch@gimp.org>
      
      	General cleanup of the selection tools and their PDB wrappers:
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-contiguous-region.[ch]
      	* app/core/gimpimage-mask-select.[ch]: new files providing a clean,
      	uniform API for the selection functionalities. Changed order of
      	parameters to be consistent, removed code duplication.
      
      	The region returned by the "by_color" function is not really
      	contiguous but the API is so similar to "by_seed" and it's used
      	in the same context so it's fair enough to put them together.
      
      	Also, I'm not sure if the two is_pixel_sufficiently_different()
      	I've optimized away were meant to do *exactly* the same. Added
      	a comment there to remember the former difference.
      
      	* app/core/gimpchannel.[ch] (gimp_channel_feather): removed the
      	"output" channel parameter and made it optionally push an undo
      	(like the other channel operations do).
      
      	* app/core/gimpimage-mask.c: call gimp_channel_feather() with
      	"push_undo == TRUE", removed some useless comments.
      
      	* app/tools/gimpbycolorselecttool.[ch]
      	* app/tools/gimpellipseselecttool.[ch]
      	* app/tools/gimpfreeselecttool.[ch]
      	* app/tools/gimpfuzzyselecttool.[ch]
      	* app/tools/gimprectselecttool.[ch]: removed all the actual
      	selection functionality and call the new gimp_image_mask_select_*()
      	and gimp_image_contiguous_region_*() functions instead.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpiscissorstool.c: use new function
      	gimp_image_mask_select_channel() instead of doing the same manually.
      
      	* app/tools/gimpbucketfilltool.c: find_contiguous_region() ->
      	gimp_image_contiguous_region_by_seed().
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl
      	* tools/pdbgen/pdb/selection_tools.pdb: added new group "Selection
      	Tools" which depends only on "core/" stuff (not on "tools/" any
      	more, brrrr).
      
      	* tools/pdbgen/pdb/text_tool.pdb: don't include "appenv.h"
      
      	* tools/pdbgen/pdb/tools.pdb: removed the selection tools.
      
      	* app/pdb/Makefile.am
      	* app/pdb/selection_tools_cmds.c: new file.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/tools_cmds.c: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpselectiontools_pdb.[ch]: new files.
      
      	* libgimp/gimptools_pdb.[ch]: regenerated
      
      	Misc cleanups:
      
      	* app/app_procs.c: call splash_create() with "no_splash_image"
      	as parameter.
      
      	* app/display/gimpdisplay-render.c
      	* app/display/gximage.c: don't include "appenv.h".
      
      	* app/gui/gui.c: call session_restore() only if "restore_session"
      	is TRUE.
      
      	* app/gui/session.c: don't "if(restore_session)" here and don't
      	include "appenv.h"
      
      	* app/gui/splash.[ch]: added "gboolean show_image" parameter to
      	splash_create(), don't include "appenv.h"
      
      	* app/tools/gimppainttool.[ch]: added a "GimpGradient" parameter
      	to gimp_paint_tool_get_color_from_gradient().
      
      	* app/tools/gimppaintbrushtool.c: pass the gradient.
      
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/tool_manager.c: s/GDisplay/GimpDisplay/.
      
      	* app/widgets/gimpcontainergridview.[ch]: removed the "white_style"
      	class variable and don't fiddle around with colors and styles...
      
      	* themes/Default/gtkrc: ...do the same here with a simple rc style.
      99e78c70
  29. 17 Oct, 2001 1 commit
    • 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
  30. 25 Sep, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/disp_callbacks.[ch] app/gdisplay.[ch] · f235eabb
      Michael Natterer authored
      2001-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/disp_callbacks.[ch]
      	* app/gdisplay.[ch]
      	* app/gdisplay_ops.[ch]
      	* app/gximage.[ch]
      	* app/image_render.[ch]
      	* app/interface.[ch]
      	* app/marching_ants.h
      	* app/scale.[ch]
      	* app/scroll.[ch]
      	* app/selection.[ch]: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-marching-ants.h
      	* app/display/gimpdisplay-ops.[ch]
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gximage.[ch]: added here.
      
      	* app/[many files]
      	* app/gui/[many files]
      	* app/tools/*
      	* app/widgets/[many files]: changed accordingly. Still very
      	incomplete separation of the display stuff but it at least
      	compiles.
      
      	* tools/pdbgen/pdb.pl:
      	* tools/pdbgen/pdb/display.pdb: s/GDisplay/GimpDisplay/,
      	s/"gdisplay.h"/"display/gimpdisplay.h"/.
      
      	* app/pdb/display_cmds.c: regenerated.
      f235eabb
  31. 16 May, 2001 1 commit
    • Michael Natterer's avatar
      removed search_in_path() and the unused xstrsep(). · 7dacaa1d
      Michael Natterer authored
      2001-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/general.[ch]: removed search_in_path() and the unused
      	xstrsep().
      
      	* app/plug_in.c: added plug_in_search_in_path(), don't include
      	"general.h".
      
      	* app/gimprc.c
      	* app/image_render.c
      	* app/gui/convert-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/paths-dialog.c
      	* app/pdb/paths_cmds.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb/paths.pdb: removed useless includes.
      7dacaa1d
  32. 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
  33. 09 May, 2001 2 commits
    • Michael Natterer's avatar
      app/Makefile.am removed. · d1022c34
      Michael Natterer authored
      2001-05-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/asupsample.[ch]: removed.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/tools/Makefile.am
      	* app/tools/tools-types.h: new files.
      
      	* app/tools/gimptoolinfo.[ch]: removed.
      	* app/core/gimptoolinfo.[ch]: added here.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp.h
      	* libgimp/gimpadaptivesupersample.[ch]
      	* libgimp/gimpbilinear.[ch]: removed here...
      
      	* libgimpcolor/Makefile.am
      	* libgimpcolor/gimpcolortypes.h
      	* libgimpcolor/gimpadaptivesupersample.[ch]
      	* libgimpcolor/gimpbilinear.[ch]: ..and added here.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/paths.pdb
      
      	* app/*.c: changed tons of #include's
      d1022c34
    • 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
  34. 05 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am some new files and data types: · be0e7d11
      Michael Natterer authored
      2001-02-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h: some new files and data types:
      
      	* app/gimppreview.[ch]: new widgets which provides a view
      	of a GimpViewable.
      
      	* app/gimpcontainerview.[ch]: new abstract widget base class for
      	views of GimpContainers of GimpViewables
      
      	* app/gimpcontainerlistview.[ch]: (still) simple implementation of
      	a list view of the container.
      
      	* app/gimpbrush.[ch]
      	* app/gimppattern.[ch]: provide dumb implementations of the
      	GimpViewable's "preview" method.
      
      	* app/image_render.c: quick bad hack to enable preview sizes which
      	are != "preview_size": Always allocate data chunks for previews up
      	to 256 pixels width.
      
      	* app/drawable.c: emit the "incalidate_preview" signal from
      	drawable_update(). This may cause useless updates at the moment
      	but as we want to move from explicit updates to signal-driven
      	model-view stuff it's the right thing (TM).
      
      	* app/commands.[ch]
      	* app/interface.c
      	* app/menus.c: Added a "Test dialogs" menu to the Toolbox.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: propagated the new alpha channel stuff
      	to the autogenerated files.
      be0e7d11
  35. 30 Jan, 2001 1 commit
  36. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      
      	#include "config.h"
      
      	#include <system stuff>
      
      	#include <gtk/gtk.h>
      
      	#include "apptypes.h"
      
      	#include "gimp stuff"
      
      	#include "libgimp stuff"
      
      	#include "libgimp/gimpintl.h"
      
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
      8d6c335f