1. 11 Apr, 2003 1 commit
  2. 08 Apr, 2003 1 commit
    • Michael Natterer's avatar
      added vitrual function GimpViewable::get_description() which returns the · 99d93b92
      Michael Natterer authored
      2003-04-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added vitrual function
      	GimpViewable::get_description() which returns the string that
      	should be presented to the user plus an optional tooltip with more
      	information. The default implementation just returns the object's
      	name and no tooltip.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimptoolinfo.c: implement get_description().
      
      	* app/core/gimpimagefile.[ch]: ditto. Renamed
      	gimp_imagefile_get_description() to
      	gimp_imagefile_get_desc_string(). Well, um, gimme a better name...
      
      	* app/gui/file-open-dialog.c: changed accordingly.
      
      	* app/file/file-utils.[ch]: renamed readXVThumb() to
      	file_utils_readXVThumb().
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/widgets/widgets-types.h: removed GimpItemGetNameFunc typedef.
      
      	* app/widgets/gimpcontainerview-utils.[ch]: removed the the actual
      	get_name_funcs. They now live in the core as
      	GimpViewable::get_description() implementations.
      
      	* app/widgets/gimpcontainermenu.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainermenuimpl.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpcontainerview.[ch]
      	* app/widgets/gimpmenuitem.[ch]
      	* app/widgets/gimpviewabledialog.c: removed get_name_func stuff
      	and use gimp_viewable_get_description().
      
      	* app/widgets/gimpcontainermenu.[ch]: added "preview_border_width"
      	to gimp_container_menu_set_preview_size().
      
      	* app/widgets/gimpimagedock.c: changed accordingly.
      
      	* app/pdb/fileops_cmds.c: regenerated.
      99d93b92
  3. 20 Mar, 2003 1 commit
    • Michael Natterer's avatar
      Removed deprecated and broken list views based on GtkList[Item] (fixes bug · c1dffc05
      Michael Natterer authored
      2003-03-20  Michael Natterer  <mitch@gimp.org>
      
      	Removed deprecated and broken list views
      	based on GtkList[Item] (fixes bug #90965):
      
      	* app/widgets/gimpchannellistitem.[ch]
      	* app/widgets/gimpchannellistview.[ch]
      	* app/widgets/gimpcontainerlistview.[ch]
      	* app/widgets/gimpdrawablelistitem.[ch]
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpitemlistitem.[ch]
      	* app/widgets/gimpitemlistview.[ch]
      	* app/widgets/gimplayerlistitem.[ch]
      	* app/widgets/gimplayerlistview.[ch]
      	* app/widgets/gimplistitem.[ch]
      	* app/widgets/gimpvectorslistview.[ch]: removed.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/gui/channels-commands.c
      	* app/gui/channels-menu.c
      	* app/gui/drawable-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/layers-menu.c
      	* app/gui/palettes-commands.c
      	* app/gui/test-commands.c
      	* app/gui/vectors-commands.c
      	* app/gui/vectors-menu.c: changed accordingly.
      
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c: removed the term "tree" from all user visible
      	places and create tree views when lists are requested.
      
      2003-03-20  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: app/widgets/*list* -> *tree*
      c1dffc05
  4. 21 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Started migration from GtkList to GtkTreeView: · 9ee632a6
      Michael Natterer authored
      2003-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Started migration from GtkList to GtkTreeView:
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpcontainertreeview.[ch]; new GimpContainerView
      	subclass using GtkListStore/GtkTreeView.
      
      	* app/widgets/widgets-enums.h: added GIMP_VIEW_TYPE_TREE to
      	thje GimpViewType enum.
      
      	* app/widgets/gimpcontainereditor.c: added GimpContainerTreeView
      	to the switch() which selects the view type.
      
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs-menu.c
      	* app/gui/dialogs.c: added tree view versions of many dialogs.
      
      	* app/widgets/gimppreview.[ch]: removed the get_size() virtual
      	function and gimp_preview_calc_size().
      
      	* app/core/gimpviewable.[ch]: added virtual function
      	get_preview_size() and gimp_viewable_calc_preview_size().
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-preview.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c: added get_preview_size() implementations.
      
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimpgradientpreview.c
      	* app/widgets/gimpimagepreview.c
      	* app/widgets/gimppalettepreview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpundopreview.c
      	* app/display/gimpnavigationview.c: changed accordingly, removed
      	get_size() implementations.
      
      	* app/widgets/widgets-types.h: changed the first param of
      	GimpItemGetNameFunc from GtkWidget to GObject.
      
      	* app/widgets/gimpcontainerview-utils.c: accept a GimpViewable as
      	object in the built-in get_name funcs.
      
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c: changed accordingly.
      9ee632a6
  5. 28 Apr, 2002 1 commit
    • Michael Natterer's avatar
      added "gchar *name_changed_signal" to GimpViewableClass which defaults to · 63ca433d
      Michael Natterer authored
      2002-04-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.[ch]: added "gchar *name_changed_signal"
      	to GimpViewableClass which defaults to "name_changed".
      
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c: connect to
      	viewable_class->name_changed_signal instead of just
      	"name_changed". Fixed possible UI inconsistency where the previous
      	viewable's tooltip would have been displayed.
      
      	* app/core/gimpimagefile.[ch]: set name_changed_signal to
      	"info_changed" so views can update their tooltips correctly.
      	Merged the separate image_state and thumb_state states into one
      	state variable and extended the state enum. Added description
      	strings for all states. Show the file size for all files, not only
      	for those with a thumbnail. Enabled display of outdated
      	thumbnails.
      
      	* app/gui/file-open-dialog.c: some changes because
      	gimp_imagefile_get_description() returns 3 instead of 2 lines of
      	text now.
      
      	* app/widgets/gimpcontainerview-utils.c: show the imagefile's
      	description in the tooltip.
      
      	* app/gui/menus.c
      	* app/gui/documents-commands.[ch]
      	* app/widgets/gimpdocumentview.c: added functions to remove
      	"dangling" document history entries. Updated the context menu so
      	all functions can be accessed through it.
      63ca433d
  6. 14 Apr, 2002 2 commits
    • Michael Natterer's avatar
      added utility functions file_utils_uri_to_utf8_basename() and · 65cfa8db
      Michael Natterer authored
      2002-04-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-utils.[ch]: added utility functions
      	file_utils_uri_to_utf8_basename() and
      	file_utils_uri_to_utf8_filename().
      
      	* app/nav_window.c
      	* app/undo_history.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/info-window.c
      	* app/gui/menus.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/widgets/gimpcontainerview-utils.c: use the new functions.
      65cfa8db
    • Michael Natterer's avatar
      Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile. · 5e51cebc
      Michael Natterer authored
      2002-04-14  Michael Natterer  <mitch@gimp.org>
      
      	Use UTF-8 encoded escaped URIs for GimpImage and GimpImageFile.
      
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/file/file-utils.[ch]: port everything to using URIs, removed
      	file_open_absolute_filename() and added file_utils_filename_to_uri()
      	instead.
      
      	* app/core/gimpimage.[ch]: added gimp_image_[get|set]_uri() which
      	works like the old gimp_image_[get|set]_filename().
      	Changed gimp_image_[get|set]_filename() to call uri conversion
      	functions.
      
      	* app/app_procs.c: removed lots of code and use the new uri
      	functions to open images passed on the command line.
      
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: changed accordingly.
      
      	* app/nav_window.c
      	* app/undo_history.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/info-window.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/widgets/gimpcontainerview-utils.c:
      	s/gimp_image_get_filename()/gimp_image_get_uri()/g. Need to add
      	a utility function which returns the basename in unescaped UTF-8.
      
      	* app/gui/file-commands.c
      	* app/widgets/gimpdocumentview.c: use "uri", not "filename" as
      	variable name where appropriate.
      
      	* app/gui/menus.c: some broken code for the "Open Recent" items,
      	will be fixed soon...
      
      	* app/widgets/gimpdnd.c: evil (!!!) hackery to convert dropped
      	filenames to uris.
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly. Clarified
      	the meaning of the "raw_filename" parameter.
      
      	* tools/pdbgen/pdb/message.pdb: use g_message("%s", message),
      	*not* g_message(message).
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/message_cmds.c
      	* libgimp/gimpfileops_pdb.c: regenerated.
      5e51cebc
  7. 17 Dec, 2001 1 commit
    • Michael Natterer's avatar
      added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. · be1215a2
      Michael Natterer authored
      2001-12-18  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS.
      
      	* app/core/gimpbuffer.[ch]: gimp_buffer_get_[width|height]:
      	added "const" to the GimpBuffer parameter.
      
      	* app/core/gimpchannel.c: indentation and comment changes.
      
      	* app/core/gimpdrawable-desaturate.c: don't include
      	"paint-funcs/paint-funcs.h".
      
      	* app/display/gimpdisplayshell.c: don't include "base/temp-buf.h".
      
      	* app/gui/gui.c: removed the image container's "name_changed"
      	handler.
      
      	* app/gui/palette-import-dialog.[ch]: use GimpPreview and
      	GimpContainerMenu instead of doing the same manually. Removed lots
      	of code. Not perfect yet.
      
      	* app/tools/gimpfuzzyselecttool.c: no need to include tile stuff.
      
      	* app/widgets/gimpcontainerview-utils.c: better g_warning() message.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: don't include
      	"base/tile-manager.h".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* data/images/Makefile.am
      	* data/images/gimp_logo.ppm: removed...
      	* data/images/gimp_logo.png: ...and added as PNG.
      
      	* app/gui/about-dialog.c: use gdk_pixbuf_new_from_file() to load
      	the PNG logo instead of manually parsing the PPM.
      be1215a2
  8. 12 Dec, 2001 1 commit
    • Michael Natterer's avatar
      made gimp->global_buffer a GimpBuffer, not TileManager. · 9b8bf8de
      Michael Natterer authored
      2001-12-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: made gimp->global_buffer a GimpBuffer,
      	not TileManager.
      
      	* app/core/gimpbuffer.[ch]: added a "gboolean copy_pixels" to
      	gimp_buffer_new().
      
      	* app/core/gimpimage-new.c
      	* app/core/gimpedit.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c: chaned accordingly, don't
      	include "base/tile-manager.h".
      
      	* app/core/gimpdrawable.[ch]: added gimp_drawable_copy().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]: use it in
      	gimp_[channel|layer|layer_mask]_copy(), added "GType new_type" as
      	paramater to all of them.
      
      	* app/core/gimpimage-duplicate.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimplayer.[ch]: removed the "layer_type" parameter from
      	gimp_layer_new_from_tiles() because it always needed to be equal
      	to gimp_image_base_type_with_alpha() of the passed image.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c: cahanged accordingly.
      
      	* app/core/gimpimage.[ch]: added some new GIMP_IMAGE_TYPE_FOO()
      	marcos to get rid of magic values like "pixels = 3" all over the
      	place.
      
      	* app/core/gimplayer.[ch]: added gimp_layer_new_from_drawable()
      	which creates a layer from an other image's drawable.
      
      	* app/core/gimpimage-convert.[ch]: made the RGB and GRAY converters
      	public to use them above, use the new GIMP_IMAGE_TYPE() macros.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/toolbox.c: removed tile manager stuff and use the new
      	functions.
      
      	* app/widgets/gimpdrawablelistview.[ch]: added a
      	"convert_drawable_func" which is used to handle drops from other
      	images.
      
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.[ch]: implemented DND of layers between
      	images using gimp_layer_new_from_drawable().
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      9b8bf8de
  9. 28 Nov, 2001 1 commit
    • 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
  10. 23 Nov, 2001 1 commit
    • Michael Natterer's avatar
      removed a useless g_return_if_fail(). · d463a5ef
      Michael Natterer authored
      2001-11-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontainer.c: removed a useless g_return_if_fail().
      
      	* app/widgets/gimpcontainereditor.h: removed GimpViewType enum.
      
      	* app/widgets/widgets-types.h: added it here.
      
      	* app/widgets/gimpcontainerview-utils.[ch]: added a utility function
      	which gets the GimpContainerView out of a GimpDockable.
      
      	* app/widgets/gimpdialogfactory.[ch]: added support for saving and
      	loading of each GimpDockable's preview size. Store the dialog's
      	default preview size in the GimpDialogFactoryEntry.  Pass the
      	preview_size to each created dialog.
      
      	* app/gui/menus.c: added menu items for setting the preview_size
      	and switching between list and grid view. Removed the item
      	overkill in the "Add Tab" submenu.
      
      	* app/gui/dialogs-commands.[ch]: added callbacks for the new items.
      
      	* app/widgets/gimpdockbook.c: set the item's state before showing
      	the menu.
      
      	* app/errors.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/edit-commands.c
      	* app/gui/gui.c
      	* app/gui/indicator-area.c
      	* app/gui/toolbox.c: changed accordingly.
      
      	* app/tools/selection_options.[ch]: cleaned up the selection
      	options and added some tooltips. Much more to do...
      d463a5ef
  11. 13 Nov, 2001 1 commit
    • Sven Neumann's avatar
      added some safety checks. · bc5011e4
      Sven Neumann authored
      2001-11-13  Sven Neumann  <sven@gimp.org>
      
      	* app/base/temp-buf.c: added some safety checks.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpimagefilepreview.[ch]: a new class implementing
      	special	GimpPreview methods for GimpImagefile.
      
      	* app/core/gimpimagefile.c: added code to load thumbnails according
      	to the proposed Thumbnail Managing Standard
      	(see http://triq.net/~pearl/thumbnail-spec/). Pretty much untested.
      
      	* app/widgets/gimpcontainerview-utils.c: plugged a memleak.
      
      	* app/widgets/gimpimagepreview.c: simplified.
      
      	* app/widgets/gimppreview.c: tell it about GimpImagefilePreview.
      bc5011e4
  12. 12 Nov, 2001 1 commit
    • Michael Natterer's avatar
      changed GimpItemGetNameFunc signature to return a tooltip in a passed · f97a9249
      Michael Natterer authored
      2001-11-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/widgets-types.h: changed GimpItemGetNameFunc
      	signature to return a tooltip in a passed gchar* pointer location.
      
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimplistitem.c
      	* app/widgets/gimpmenuitem.c: changed all get_name_funcs and their
      	callers accordingly (passing the "gchar **tooltip" pointer is
      	optional).
      f97a9249
  13. 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
  14. 29 Aug, 2001 1 commit
    • Michael Natterer's avatar
      added -DG_DISABLE_DEPRECATED and -DGDK_DISABLE_COMPAT_H. · 98410c35
      Michael Natterer authored
      2001-08-29  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added -DG_DISABLE_DEPRECATED and
      	-DGDK_DISABLE_COMPAT_H.
      
      	* app/batch.c
      	* app/file-utils.c
      	* app/gdisplay.c
      	* app/gdisplay_ops.c
      	* app/gimprc.[ch]
      	* app/module_db.c
      	* app/nav_window.c
      	* app/undo_history.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimagefile.c
      	* app/core/gimppalette.c
      	* app/gui/color-notebook.c
      	* app/gui/convert-dialog.c
      	* app/gui/error-console-dialog.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/info-window.c
      	* app/gui/menus.c
      	* app/gui/palette-import-dialog.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpdatafactoryview.c
      	* libgimp/gimpmenu.c
      	* plug-ins/common/bz2.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/csource.c
      	* plug-ins/common/decompose.c
      	* plug-ins/common/gz.c
      	* plug-ins/common/uniteditor.c
      	* plug-ins/common/wmf.c
      	* plug-ins/common/xbm.c
      	* plug-ins/rcm/rcm_dialog.c
      	* plug-ins/script-fu/interp_slib.c
      	* plug-ins/script-fu/script-fu-console.c
      	* plug-ins/script-fu/script-fu-scripts.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gimprc_cmds.c: removed deprecated stuff like
      	g_basename(), g_dirname(), g_strup() and friends. Added some
      	"const gchar *" declarations while I was on it. Added some
      	G_N_ELEMENTS() macros instead of declaring a useless variable
      	for the number of items.
      
      	* app/widgets/gtkhwrapbox.[ch]
      	* app/widgets/gtkvwrapbox.[ch]
      	* app/widgets/gtkwrapbox.[ch]: replaced with the latest versions
      	from GLE, ported by the master himself.
      
      	* app/gui/toolbox.c: changed accordingly.
      
      	* app/plug_in.c
      	* libgimp/gimp.c
      	* libgimpbase/gimpwire.[ch]: use evil hacks to get binary mode
      	from the new GIOChannel implementation (upstream bugreport already
      	posted).
      98410c35
  15. 04 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h added an "application object" · 01645960
      Michael Natterer authored
      2001-07-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimp.[ch]: added an "application object" called Gimp.
      
      	Currently, it contains the image list, the clipboard, the data
      	factories, the procedural hashtable and the tool info list.  It's
      	the toplevel object of the core object system. Finally, creating a
      	Gimp object will return a standalone gimp core engine instance
      	with no other global states/variables involved.
      
      	* app/app_procs.[ch]: allocate a "Gimp" instance called "the_gimp" :)
      	Removed stuff which is now done by the "Gimp" object. Merged
      	gimp_init() into app_init() because gimp_init() is taken now.
      
      	* app/context_manager.[ch]: removed stuff done by "Gimp".
      
      	* app/batch.[ch]
      	* app/gimage.[ch]
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf.[ch]
      	* app/core/gimpedit.[ch]
      	* app/tools/tool_manager.[ch]: pass around an additional "Gimp"
      	argument.
      
      	* app/pdb/procedural_db.[ch]: pass a "Gimp" pointer as first
      	parameter to all internal procedures and to all procedural_db_*
      	functions.
      
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpimage.[ch]: added a "Gimp" pointer to the structs.
      
      	* app/devices.c
      	* app/errors.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/gimphelp.c
      	* app/gimpunit.c
      	* app/image_new.c
      	* app/main.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/base/base.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimptoolinfo.[ch]
      	* app/gui/brush-select.c
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/test-commands.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimppainttool.h
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.h
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpimagedock.c: changed accordingly. Cleaned up
      	lots of includes. Many files still access the global "the_gimp"
      	variable exported by app_procs.h.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Don't
      	use "the_gimp" here because all procedures get passed a "Gimp"
      	pointer now.
      
      	* app/pdb/*: regenerated.
      01645960
  16. 26 Jun, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · d26c2668
      Michael Natterer authored
      2001-06-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/color_transfer.[ch]: removed.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorbalancetool-transfer.[ch]: added.
      
      	* app/tools/gimpcolorbalancetool.c: changed accordingly.
      
      	* app/base/Makefile.am
      	* app/base/tile-manager-crop.[ch]: formerly known as crop_buffer().
      
      	* app/tools/gimptexttool.c: changed accordingly.
      
      	* app/context_manager.[ch]: added the global clipboard and the
      	named buffer list here.
      
      	* app/app_procs.c: don't call color_transfer_init() and don't free
      	the buffer stuff (done by the context manager now).
      
      	* app/errorconsole.c: don't #include "gui/commands.h"
      
      	* app/global_edit.[ch]: removed lots of stuff which is now done by
      	gui/edit-commands.* or the new GimpBuffer object. The "paste
      	named" dialog will go away and this file will be moved to core/
      	soon.
      
      	* app/image_new.c: no need to declare the global_buffer extern any
      	more.
      
      	* app/qmask.c: don't #include "global_edit.h"
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpbuffer.[ch]: new object (aka named buffer)
      
      	* app/core/gimpcontext.[ch]: added a GimpBuffer attribute.
      
      	* app/core/gimpimage.[ch]: one s/int/gboolean/.
      
      	* app/core/gimppattern.c: hmm...
      
      	* app/gui/commands.[ch]: split up in small files:
      
      	* app/gui/Makefile.am
      	* app/gui/edit-commands.[ch]
      	* app/gui/file-commands.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/select-commands.[ch]
      	* app/gui/view-commands.[ch]: new files.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c: added the named buffer list & grid.
      
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/test-commands.c: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/edit.pdb: changed for the global_edit stuff.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpbufferpreview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]: new widgets.
      
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/widgets-types.h: changed accordingly for the new
      	GimpBuffer object and it's views, misc. cleanups.
      
      	* pixmaps/Makefile.am
      	* pixmaps/paste-as-new.xpm
      	* pixmaps/paste-into.xpm
      	* pixmaps/paste.xpm: new pixmaps (they all look the same... Tigert? ;-)
      
      	* po/POTFILES.in: added the new files.
      d26c2668
  17. 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
  18. 13 May, 2001 1 commit
    • Michael Natterer's avatar
      some percentage updates. · 1a5a50d9
      Michael Natterer authored
      2001-05-13  Michael Natterer  <mitch@gimp.org>
      
      	* TODO.xml: some percentage updates.
      
      	* autogen.sh: correctly parse latest autoconf's broken "--version"
      	string.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpcontainerview-utils.[ch]: new files which
      	provide a set of built-in get_name_func()s for GimpContainerView
      	and GimpContainerMenu.
      
      	* app/widgets/gimpcontainermenu.c
      	* app/widgets/gimpcontainerview.c: use them.
      
      	* app/widgets/gimpimagedock.c
      	* app/gui/dialogs-constructors.c: removed the get_name_func()s here.
      1a5a50d9