1. 07 May, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · b6c56ff9
      Michael Natterer authored
      2002-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/nav_window.[ch]: removed.
      
      	* app/display/Makefile.am
      	* app/display/display-types.h
      	* app/display/gimpnavigationview.[ch]: new widget partially based
      	on the removed nav_window.
      
      	* libgimpproxy/gimpproxytypes.h: regnenerated.
      
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	gdisplays_nav_preview_resized(). The new config system will allow
      	us to get notified of changes.
      
      	* app/display/gimpdisplayshell.[ch]: added "scaled" and "scrolled"
      	signals.
      
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c: emit "scaled" and
      	"scrolled" appropriately. Removed nav_window stuff.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/menus.c: made the navigation dialog dockable.
      
      	* app/gui/view-commands.c: changed the nav_dialog callback accordingly.
      
      	* app/gui/preferences-dialog.c
      	* app/gimprc.[ch]
      	* app/config/gimpguiconfig.[ch]: removed "nav_window_per_display"
      	as it's now a dockable and it's state is saved in sessionrc.
      
      	* app/widgets/gimpnavigationpreview.[ch]: added context sensitive
      	mouse cursors.
      
      	* app/widgets/gimpimagedock.c: made it capable of holding
      	display-related dialogs (like GimpNavigationView) by connecting
      	to the context's "display_changed" signal.
      
      	* app/widgets/widgets-types.h: removed inclusion of
      	"display/display-types.h".
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponentlistitem.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpitemlistitem.c
      	* app/widgets/gimpitemlistview.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/gimpvectorslistview.c: warn about inclusion of
      	"display/display-types.h".
      b6c56ff9
  2. 05 May, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed... · c86ca2da
      Michael Natterer authored
      2002-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimphelp.[ch]: removed...
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimphelp.[ch]: ...and added here.
      
      	* app/widgets/widgets-enums.[ch]: added GimpHelpBrowserType here
      	as registered enum. Added an evil hack with GimpCursorType so
      	app/config/gimpguiconfig.h can include this file.
      
      	* app/widgets/gimpcursor.c: added an assertion because of the
      	changed GimpCursorType.
      
      	* app/config/gimpguiconfig.[ch]: added a property for the help
      	browser type.
      
      	* app/gimprc.c
      	* app/libgimp_glue.c
      	* app/gui/preferences-dialog.c
      	* tools/pdbgen/pdb/help.pdb
      
      	* app/pdb/help_cmds.c: regenerated.
      
      	Some nav_window cleanup before chopping:
      
      	* app/nav_window.[ch]: removed the old preview code and use
      	GimpNavigationPreviews only. Namespaceified all functions. Speak
      	in terms of GimpDisplayShell, not GimpDisplay. Lots of internal
      	cleanup.
      
      	* app/gui/gui-types.h: removed NadiagtionDialog here...
      
      	* app/display/display-types.h: ...and added it here.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: added a callback
      	for the navigation button and call nav_window_show_popup() from there.
      
      	* app/display/gimpdisplayshell.c: free shell->nav_dialog
      	unconditionally, connect to the new callback.
      
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/view-commands.c: changed accordingly.
      
      	* app/widgets/gimppreview.c (gimp_preview_set_viewable): the
      	assertion introduced recently was too tight, breaking
      	GimpNavigationPreview. Changed it to do an "is a" check, not exact
      	preview type matching.
      
      	* app/widgets/gimpimagepreview.c: added quick-hack support for
      	xres != yres.
      
      	* app/widgets/gimpnavigationpreview.[ch]: made
      	gimp_navigation_preview_grab_pointer() public so the nav_window
      	can call it.
      
      	Unrelated:
      
      	* app/display/gimpdisplay.c: removed the gui/ dependency from this
      	file by removing info_window stuff.
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_flush): update
      	the info_window here.
      
      	* app/gui/dialogs-constructors.c (dialogs_indexed_palette_new): call
      	gimp_dockable_set_context() like all other constructors.
      
      	* app/undo.c
      	* app/paint/gimppaintcore.h: some more include cleanup.
      c86ca2da
  3. 03 May, 2002 1 commit
    • Michael Natterer's avatar
      devel-docs/Makefile.am new file documenting the core's include policy. · a74a8997
      Michael Natterer authored
      2002-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* devel-docs/Makefile.am
      	* devel-docs/includes.txt: new file documenting the core's
      	include policy.
      
      	* HACKING: mention it here.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptions here.
      
      	* app/core/core-types.h: and added it here. This is a temp hack
      	needed because GimpToolInfo needs to know the GimpToolOptions
      	type.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* libgimptool/gimptoolmodule.h: don't include gimptooltypes.h here...
      	* libgimptool/gimptoolmodule.c: ...but here.
      
      	* app/config/gimpconfig-params.c: include "libgimpbase/gimpbase.h"
      	entirely, not single files from it.
      
      	* app/core/gimp.c
      	* app/core/gimpcontext.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpdocuments.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimpmodules.c
      	* app/core/gimppaintinfo.c
      	* app/core/gimpparasite.c
      	* app/core/gimppreviewcache.c
      	* app/core/gimptoolinfo.c
      	* app/core/gimpunit.c: include "core-types.h" and no other types file.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.c: include "tools/tools-types.h"
      	instead of "libgimptool/gimptooltypes.h", warn about inclusion
      	on "gui/gui-types.h"
      
      	* app/file/file-open.c
      	* app/file/file-save.c: don't include "libgimptool/gimptooltypes.h".
      
      	* app/gui/about-dialog.c
      	* app/gui/brush-select.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-select.c
      	* app/gui/data-commands.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs.c
      	* app/gui/gradients-commands.c
      	* app/gui/help-commands.c
      	* app/gui/info-window.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c: include "gui-types.h" and no
      	other types file.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint.c: include "paint-types.h" and no other types file.
      
      	* app/pdb/pdb-types.h: don't include "libgimptool/gimptooltypes.h".
      
      	* app/plug-in/plug-in-progress.c: warn about inclusion of
      	"display/display-types.h"
      
      	* app/tools/tools-types.h: include "libgimptool/gimptooltypes.h".
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptoolcontrol.c
      	* app/tools/gimptoolcontrol.h
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/tools/tools.c: include "tools-types.h" and no other types file,
      	warn about inclusion of "gui/gui-types.h".
      
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimptoolbox-color-area.c: warn about inclusion of
      	"gui/gui-types.h".
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf.c: don't include "libgimptool/gimptooltypes.h".
      
      	Split tool-safe-mode up in two files, one including libgimpproxy,
      	one libgimp.
      
      	* plug-ins/tools/Makefile.am
      	* plug-ins/tools/tool-safe-mode-plug-in.[ch]: new files including
      	libgimp/ stuff only.
      
      	* plug-ins/tools/tool-safe-mode.[ch]: include libgimpproxy/ and
      	libgimptool/ but don't include libgimp/ because of conflicting
      	declarations.
      
      	Unrelated:
      
      	* app/tools/gimpclonetool.c: create the clone core so we don't crash.
      
      	* app/gui/file-open-dialog.c: changed the way we create previews
      	so that only out-of-date previews are created on a click in the
      	preview area. Unconditional creation can still be forced by
      	<Ctrl>+click. Changed the tooltip to document this.
      a74a8997
  4. 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
  5. 19 Apr, 2002 1 commit
    • Michael Natterer's avatar
      all functions return the opened image and the pdb status plus a GError · 84ee76d5
      Michael Natterer authored
      2002-04-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/file/file-open.[ch]: all functions return the opened image
      	and the pdb status plus a GError now. Removed all g_message()
      	calls from file_open_image(). Instead, display all error messages
      	in file_open_with_proc_and_display() if it got no error return
      	location passed.
      
      	* app/app_procs.c
      	* app/core/gimpimagefile.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c: changed accordingly.
      
      	* app/gui/file-open-dialog.c: only treat the "entered_filename" as
      	URI if it contains "://".
      84ee76d5
  6. 14 Apr, 2002 2 commits
    • 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
    • Michael Natterer's avatar
      removed some #if 0'ed stuff. · 6d215cae
      Michael Natterer authored
      2002-04-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.c: removed some #if 0'ed stuff.
      
      	* app/gui/edit-commands.c (edit_copy_cmd_callback): call
      	gdisplays_flush() so the menus are updated correctly.
      
      	* app/widgets/gimpitemfactory.c (gimp_item_factory_set_color):
      	pack the original menu item label with TRUE, TRUE into the created
      	hbox so it's accel. label is visible.
      6d215cae
  7. 12 Apr, 2002 1 commit
    • Michael Natterer's avatar
      reordered some lines, no logic changed. · 1a259d68
      Michael Natterer authored
      2002-04-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-crop.c: reordered some lines, no logic
      	changed.
      
      	* app/core/gimplayer.[ch]: made gimp_layer_pick_correlate()
      	return a gboolean, not gint.
      
      	* app/display/gimpdisplayshell.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/menus.c: added "<Image>/Layers/Crop Layer" which resizes
      	the active layer to the current selection's bounds, just as
      	"<Image>/Image/Crop Image"
      1a259d68
  8. 29 Mar, 2002 1 commit
  9. 28 Mar, 2002 1 commit
    • Hans Breuer's avatar
      #define GETTEXT_PACKAGE · de5f8b5f
      Hans Breuer authored
      2001-03-28  Hans Breuer  <hans@breuer.org>
      
      	* config.h.win32 : #define GETTEXT_PACKAGE
      
      	* makefile.msc : add theme rule
      
      	* app/makefile.msc : gimp.exe depends on all the libs
      	and general update
      
      	* app/base/makefile.msc : updated
      
      	* app/config/gimpconfig-serialize.c : #include <io.h> for win32
      	* app/config/gimpconfig-types.c : #include <string.h>
      
      	* app/core/gimpcontext.c app/core/gimpcontainer.c
      	  app/core/gimptoolinfo.c : #include <string.h>
      
      	* app/core/gimpdocuments.c (gimp_documents_save_func) :
      	need to g_strescape() the filename to not make
      	backslashes vanish during de-serialization
      
      	* app/core/gimpimagefile.c : #define S_ISREG for G_OS_WIN32
      
      	* app/core/makefile.msc : add -DGIMP_COMPILATION
      	required for cpercep.c build
      
      	* app/display/gimpdisplayshell.c : #include <string.h>
      
      	* app/display/makefile.msc : -FImsvc_recommended_pragmas.h,
      	G_LOG_DOMAIN definition and object file update
      
      	* app/file/makefile.msc : -FImsvc_recommended_pragmas.h,
      	G_LOG_DOMAIN definition
      
      	* app/file/file-open.c (file_open_with_proc_and_display) :
      	use absolute filename for gimp_documents_add()
      
      	* app/gui/channel-commands.c app/gui/colormap-editor-commands.c
      	  app/gui/edit-commands.c app/gui/vectors-commands.c :
      	#include <string.h>
      
      	* app/gui/makefile.msc : updated
      
      	* app/gui/menus.c : use g_file_test() instead of access()
      	to avoid inclusion <unistd.h>
      
      	* app/paint/makefile.msc : updated
      
      	* app/plug-in/plug-in-params.c : #include <string.h>
      
      	* app/plug-in/makefile.msc : updated
      
      	* app/plug-in/plug-in-def.h : #include <time.h> for time_t
      
      	* app/plug-in/plug-in.c : remove definition of S_IFREG
      
      	* app/plug-in/gap/gap_arr_dialog.c : include <config.h>
      	before including libgimp/libgimp-intl.h
      
      	* app/tools/makefile.msc : updated
      
      	* app/vectors/makefile.msc : new file
      
      	* app/widgets/makefile.msc : updated
      
      	* libgimp/gimp.def : updated externals
      
      	* libgimpwidgets/gimpwidgets.def : updated externals
      
      	* modules/makefile.msc : updated and disabled colorsel_gtk.
      
      	* plug-in/makefile.msc : don't define GETTEXT_PACKAGE
      
      	* themes/Default/images/makefile.msc : moved makefile.msc from ..
      	and adapted pathes to images
      de5f8b5f
  10. 21 Mar, 2002 1 commit
    • Michael Natterer's avatar
      ./mitch --sanitize-identifier-namespace · ffcb0bfa
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      
      	./mitch --sanitize-identifier-namespace
      
      	* app/core/gimpcontext.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c
      	* app/gui/edit-commands.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimptoolbox-indicator-area.c
      	* app/widgets/gimptoolbox.c: s/gimp:/gimp-/g and s/_/-/g for all
      	identifier strings (e.g. gimp:eraser_tool -> gimp-eraser-tool,
      	gimp:layer-list -> gimp-layer-list, ...)
      
      	* plug-ins/tools/common/gimpbrushselecttool.c:
      	s/gimp:brush_select_tool/gimp-brush-select-tool-module/
      
      	Don't quite remember why I introduced the "gimp:" prefix in the
      	first place, but we can always add it back if we need it (for
      	whatever reason)
      
      	You may want to edit your ~/.gimp-1.3/sessionrc and devicerc or
      	all session settings will be lost due to parse errors.
      ffcb0bfa
  11. 20 Mar, 2002 3 commits
    • Michael Natterer's avatar
      app/gui/Makefile.am removed... · 6ce08f3c
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/Makefile.am
      	* app/gui/commands.[ch]: removed...
      
      	* app/gui/help-commands.[ch]: ...and added here.
      
      	* app/gui/menus.c: changed accordingly and added the mem_profile
      	debug callback so all debug stuff is in one place.
      6ce08f3c
    • Michael Natterer's avatar
      badly chopped into the new files below. Pass around much more "PlugIn" and · 47c5473e
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-in.[ch]: badly chopped into the new files below.
      	Pass around much more "PlugIn" and "Gimp" pointers instead of
      	using "current_plug_in" and "the_gimp". Needs much more hacking
      	though... :(
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-def.[ch]
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-progress.[ch]
      	* app/plug-in/plug-ins.[ch]: new files.
      
      	* app/gui/Makefile.am
      	* app/gui/plug-in-commands.[ch]
      	* app/gui/plug-in-menus.[ch]: ditto.
      
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-types.h: changed accordingly.
      
      	* app/pdb/procedural_db.c: changed procedural_db_destroy_args()
      	so it can be used from plug_in_args_destroy(). Fixed a parasite
      	memory leak (or introduced a new SEGV, we'll see...).
      
      	* app/display/Makefile.am: another "truly ugly hack" until the
      	plug-in menu stuff is chopped even more...
      
      	* app/gui/commands.[ch]: removed filters_repeat_cmd_callback() here,
      	it is now in plug-in-commands.[ch].
      
      	* app/widgets/gimpitemfactory.[ch]: removed all gimp_menu_item_*()
      	hacks. We have a GimpItemFactory available in most cases we used
      	to call this functions, and can use gimp_item_factors_from_path()
      	in all other cases. The item factory stuff needs more work
      	anyway...
      
      	* app/app_procs.c
      	* app/gimphelp.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly (includes,
      	renamed functions and gimp_menu_item_*() removal).
      
      	* app/pdb/fileops_cmds.c
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      47c5473e
    • Michael Natterer's avatar
      pass an additional "Gimp" pointer to · e302aeb1
      Michael Natterer authored
      2002-03-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: pass an additional "Gimp"
      	pointer to gimp_display_shell_set_menu_sensitivity() so we can
      	correctly set the state of some items even without a display.
      	Set the sensitivity of much more items. Never set submenus
      	insensitive so the user can always browse the whole menu
      	(according to the GNOME HIG).
      
      	* app/image_map.c
      	* app/display/gimpdisplay.c
      	* app/gui/gui.c: changed accordingly.
      
      	* app/gui/view-commands.[ch]: added a callback for the display
      	filters dialog because display releted dialogs are going to
      	be handled different soon.
      
      	* app/gui/menus.c: use the new callback.
      e302aeb1
  12. 18 Mar, 2002 3 commits
    • Sven Neumann's avatar
      app/core/core-enums.h more enum cleanup (GimpOffsetType, MergeType). · fe96c955
      Sven Neumann authored
      2002-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: more enum cleanup (GimpOffsetType, MergeType).
      
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpimage-merge.[ch]
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      fe96c955
    • Sven Neumann's avatar
      app/core/core-enums.h more enum cleanup (ChannelOps this time). · d68b730a
      Sven Neumann authored
      2002-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: more enum cleanup (ChannelOps this time).
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/tools-types.h
      	* app/widgets/gimpchannellistview.[ch]
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      d68b730a
    • Sven Neumann's avatar
      app/core/core-enums.h moved some more enums into the right place and · bba46560
      Sven Neumann authored
      2002-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved some more enums into the right place
      	and namespacified them.
      
      	* app/undo.c
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/paint-funcs/paint-funcs.c
      	* app/tools/gimpbucketfilltool.c
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: added compat defines for changed
      	GimpMaskApplyMode enum.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      bba46560
  13. 17 Mar, 2002 2 commits
    • Manish Singh's avatar
      tools/pdbgen/app.pl tools/pdbgen/enumcode-py.pl tools/pdbgen/enumcode.pl · 96f78088
      Manish Singh authored
      2002-03-17  Manish Singh  <yosh@gimp.org>
      
              * tools/pdbgen/app.pl
              * tools/pdbgen/enumcode-py.pl
              * tools/pdbgen/enumcode.pl
              * tools/pdbgen/enumgen.pl: removed enum nick support, best to keep
              internal and external names consistent
      
              * app/core/core-enums.h: remove chops from enums. Change TRANS to
              TRANSPARENT in GimpBlendMode
      
              * app/core/core-types.h: remove chops and nicks from enums. Change INV
              to INVERSE and SUB to SUBTRACT to make things more clear
      
              * app/core/gimpchannel.c
              * app/gui/channels-commands.c
              * app/gui/vectors-commands.c
              * app/tools/gimpbezierselecttool.c
              * app/tools/gimpbycolorselecttool.c
              * app/tools/gimprectselecttool.c
              * app/tools/gimpselectiontool.c
              * app/tools/selection_options.c
              * app/tools/tools-types.h
              * app/widgets/gimpchannellistview.c
              * app/widgets/gimpvectorslistview.c: reflect SUB -> SUBTRACT change
      
              * app/core/gimpdrawable-blend.c: reflect TRANS -> TRANSPARENT change
      
              * app/core/gimplayer.c
              * app/gui/layers-commands.c: reflect INV -> INVERSE change
      
              * app/paint/paint-types.h: remove nick from PaintApplicationMode
      
              * app/tools/gimperasertool.c: fix tooltip
      
              * app/widgets/gimpenummenu.c: #include "libgimp/gimpintl.h" for
              gettext
      
              * libgimp/gimpcompat.h: compatibility enums here, since we removed
              the nicks
      
              * tools/pdbgen/enums.pl
              * libgimp/gimpenums.h
              * plug-ins/script-fu/script-fu-constants.c
              * app/core/core-enums.c
              * app/pdb/channel_cmds.c
              * app/pdb/drawable_cmds.c
              * app/pdb/edit_cmds.c
              * app/pdb/layer_cmds.c
              * app/pdb/misc_tools_cmds.c
              * app/pdb/paint_tools_cmds.c
              * app/pdb/selection_cmds.c
              * app/pdb/selection_tools_cmds.c: regenerated, enum changes
      
              * plug-ins/common/hot.c: GIMP_TRANS_IMAGE_FILL -> GIMP_TRANSPARENT_FILL
      
              * plug-ins/common/warp.c: GIMP_BG_IMAGE_FILL -> GIMP_BACKGROUND_FILL
      
              * plug-ins/script-fu/siod-wrapper.c: compat constant definitions
      96f78088
    • Michael Natterer's avatar
      namespaceified and cleaned up a lot. Removed the menu code. · f8b4fbd4
      Michael Natterer authored
      2002-03-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcolormapeditor.[ch]: namespaceified and cleaned
      	up a lot. Removed the menu code.
      
      	* app/gui/menus.c: added a "<ColormapEditor>" item factory...
      
      	* app/gui/Makefile.am
      	* app/gui/colormap-editor-commands.[ch]: ...and callbacks for the
      	new factory.
      
      	* app/gui/menus.c: Cleaned up a lot. Removed most static variables.
      	Enabled the menu debugging code again. Moved all debug and test
      	entries to <Toolbox>/File/Debug. Added an "Open Recent" submenu
      	to <Image>/File because it was a one-liner after the cleanup...
      
      	* app/widgets/gimpeditor.c: create the icons in GTK_ICON_SIZE_MENU.
      	Need to make this configurable using a style property...
      f8b4fbd4
  14. 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
  15. 14 Mar, 2002 1 commit
    • Michael Natterer's avatar
      g_strdup() the stock_id passed to gimp_tool_info_new() because the · b8798408
      Michael Natterer authored
      2002-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimptoolinfo.c: g_strdup() the stock_id passed to
      	gimp_tool_info_new() because the caller's memory may disappear
      	after registering the tool (tool modules).
      
      	Made a GimpDock out of the toolbox:
      
      	* app/gui/Makefile.am
      	* app/gui/color-area.[ch]
      	* app/gui/indicator-area.[ch]
      	* app/gui/toolbox.[ch]: removed...
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptoolbox-color-area.[ch]
      	* app/widgets/gimptoolbox-indicator-area.[ch]
      	* app/widgets/gimptoolbox.[ch]: ...and added here.
      
      	* app/widgets/gimpdock.[ch]: don't set a minimal width. Added a
      	"destroy_if_empty" boolean so we can prevent destruction of the
      	toolbox if it's last dockable is removed. Added gimp_dock_construct()
      	which is called from GimpImageDock and GimpToolbox.
      
      	* app/widgets/gimpimagedock.[ch]: Default to not showing the image
      	menu, set a minimal width here, misc. minor cleanup.
      
      	* app/widgets/gimpdockbook.c: some more GIMP_IS_IMAGE_DOCK()
      	checks, fixed dnd widget creation.
      
      	* app/widgets/gimpdialogfactory.[ch]: changed
      	gimp_dialog_factories_toggle() to take just the toolbox_factory as
      	parameter. When restoring the session use the created dock's
      	dialog factory to create dockables, not the the factory we
      	created the dock from (for the toolbox).
      
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      
      	* app/gui/dialogs.[ch]: create an own dialog factory for the toolbox
      	and set dialogs_toolbox_new() as it's new_dock_func.
      
      	* app/gui/dialogs-constructors.[ch]: changed dialogs_toolbox_get()
      	accordingly.
      
      	* app/gui/dialogs-commands.[ch]: added dialogs_show_toolbox(), ckeck
      	if a dock is really a GimpImageDock before casting.
      
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/widgets/gimppaletteeditor.c: changed accordingly.
      
      	* app/gui/color-notebook.c
      	* app/gui/color-select.c
      	* app/gui/colormap-dialog.c
      	* app/gui/palette-editor-commands.c: removed useless inclusion of
      	"gui/color-area.h".
      
      	* themes/Default/gtkrc: set "gimp-dock-style" for GimpToolbox widgets.
      b8798408
  16. 12 Mar, 2002 1 commit
    • Michael Natterer's avatar
      app/gimprc.[ch] app/gui/preferences-dialog.c · 17d655c1
      Michael Natterer authored
      2002-03-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimprc.[ch]
      	* app/gui/preferences-dialog.c
      	* app/paint/gimppaintoptions.[ch]
      	* app/tools/paint_options.[ch]
      	* app/tools/tool_manager.[ch]: removed the "global_paint_options"
      	gimprc option because it doesn't quite fit the new dockable dialog
      	architecture.
      
      	* app/gui/brush-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: removed the "Global Brush/Pattern/...
      	Selection" part of them. They are now only used for temp popup
      	selections and the PDB. *Lots* of cleanup.
      
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/palette-import-dialog.c
      	* app/plug-in/plug-in.c: changed accordingly.
      
      	Cleaned up the palette and other data PDB stuff:
      
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: added "palette_select" and "palettes".
      
      	* tools/pdbgen/pdb/palette_select.pdb: new file. Makes the palette
      	selection PDB controllable.
      
      	* tools/pdbgen/pdb/palettes.pdb: new file cut out of palette.pdb
      	because of API symmetry with brushes, patterns, ...
      
      	* tools/pdbgen/pdb/palette.pdb: removed from here.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb: lots of cleanup.
      
      	Autogenerated stuff:
      
      	* app/pdb/Makefile.am
      	* app/pdb/palette_select_cmds.c
      	* app/pdb/palettes_cmds.c: new files.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/pdb/patterns_cmds.c: regenerated.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimppalettes_pdb.[ch]
      	* libgimp/gimppaletteselect_pdb.[ch]: new files.
      
      	* libgimp/gimpgradientselect_pdb.[ch]
      	* libgimp/gimppalette_pdb.[ch]
      	* libgimp/gimppatterns_pdb.c: regenerated.
      
      	* devel-docs/libgimp/tmpl/gimpgradients.sgml
      	* devel-docs/libgimp/tmpl/gimppalette.sgml: regenerated.
      17d655c1
  17. 11 Mar, 2002 1 commit
    • Michael Natterer's avatar
      added a GimpAnchorItemFunc and use it if it's set. · 3e695dd0
      Michael Natterer authored
      2002-03-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimplayerlistview.[ch]: added a GimpAnchorItemFunc
      	and use it if it's set.
      
      	* app/widgets/gimpitemlistview.c: removed the floating selection
      	special case hack from the remove_item callback.
      
      	* app/gui/layers-commands.[ch]: added layers_remove_layer() and
      	layers_anchor_layer(). Fixed sensitive setting of the "Anchor"
      	menu item.
      
      	* app/gui/dialogs-constructors.c: use the new functions when
      	constructing the layers dialog. Makes deleting and anchoring
      	floating selections from the layers dialog work without hacking
      	or code duplication.
      
      	* app/widgets/gimpdialogfactory.c: added comments about dialog
      	destruction in dispose().
      3e695dd0
  18. 08 Mar, 2002 3 commits
    • Michael Natterer's avatar
      return the crated label from gimp_table_attach_aligned(), doc fixes. · c9c025c8
      Michael Natterer authored
      2002-03-08  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.[ch]: return the crated label from
      	gimp_table_attach_aligned(), doc fixes.
      
      	* app/gui/channels-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/paint_options.c
      	* app/tools/selection_options.c
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimplayerlistview.c: use gimp_scale_entries instead
      	of just hscales in lots of places, so the values are keyboard
      	input-able.
      c9c025c8
    • Michael Natterer's avatar
      changed gimp_channel_get_color() to not return the color but take a second · 5437f54a
      Michael Natterer authored
      
      
      2002-03-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch]: changed gimp_channel_get_color() to
      	not return the color but take a second GimpRGB* parameter like all
      	other _get_color() functions. Reordered some functions to make
      	more sense, added some g_return_if_fail().
      
      	* app/core/gimppalette.[ch]: added gimp_palette_[set|get]_n_columns()
      
      	* app/gui/menus.c: added a "<PaletteEditor>" item factory.
      
      	* app/gui/Makefile.am
      	* app/gui/palette-editor-commands.[ch]: callbacks for the factory.
      
      	* app/widgets/gimppaletteeditor.[ch]: removed the menu stuff here,
      	added a spinbutton to adjust the number of columns.
      
      	* app/gui/gradient-editor-commands.c: removed usage of "the_gimp".
      
      	* app/widgets/gimpgradienteditor.c: minor cleanup.
      
      	* app/widgets/gimpbrusheditor.h
      	* app/widgets/gimpgradienteditor.h
      	* app/widgets/gimppaletteeditor.h: forgot to declare the _get_type()
      	functions publically.
      5437f54a
    • Michael Natterer's avatar
      added GimpPaletteEntry typedef. · b0e05cda
      Michael Natterer authored
      2002-03-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: added GimpPaletteEntry typedef.
      
      	* app/core/gimppalette.h: removed it here.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpeditor.[ch]: new widget which is the base class
      	for everything which is a vbox and has a button area at the
      	bottom.
      
      	* app/widgets/gimpcontainerview.[ch]: derived from GimpEditor now.
      
      	* app/widgets/gimpdataeditor.[ch]: a GimpEditor subclass which is
      	the base class for the new data editors below.
      
      	* app/widgets/gimpbrushfactoryview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpitemlistview.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpvectorslistview.c
      	* themes/Default/gtkrc: chagec accordingly.
      
      	* app/gui/Makefile.am
      	* app/gui/brush-editor.[ch]
      	* app/gui/gradient-editor.[ch]
      	* app/gui/palette-editor.[ch]: removed...
      
      	* app/widgets/gimpbrusheditor.[ch]
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]: ...and added back as
      	GimpDataEditor subclasses. Lots of cleanup and stuff...
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gui-types.h
      	* app/gui/palette-select.c
      	* app/tools/gimpcolorpickertool.c: changed accordingly.
      b0e05cda
  19. 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
  20. 03 Mar, 2002 1 commit
    • Michael Natterer's avatar
      changed gimp_image_mask_select_channel() to not take "drawable" and · affc3100
      Michael Natterer authored
      2002-03-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask-select.[ch]: changed
      	gimp_image_mask_select_channel() to not take "drawable" and
      	"sample_merged" parameters (which are silly in some contexts) but
      	simply the offsets of the passed channel.
      
      	* app/gui/channels-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      
      	* app/tools/gimpdrawtool.[ch]: chaged gimp_draw_tool_draw_lines()
      	and _draw_strokes() to take an additional "use_offsets" parameter
      	like the other drawing functions.
      
      	* app/path_curves.c
      	* app/tools/gimpvectortool.c: changed accordingly.
      
      	* app/paint/gimppaintcore.c: removed #if 0'ed code which was
      	identical to other functions.
      
      	* app/tools/gimpselectiontool.c: use the GimpEditSelectionTool's
      	"arrow_key_func" so it's now possible to keyboad-move the current
      	layer and selection with all selection tool. Needs some more
      	tweaking...
      
      	* app/tools/gimpiscissorstool.[ch]
      	* app/tools/gimpvectortool.[ch]: derive them from GimpSelectionTool
      	to make the modifier key <-> tool options interaction work. Ported
      	IScissors to the new way the draw_tool works.
      affc3100
  21. 28 Feb, 2002 1 commit
  22. 27 Feb, 2002 2 commits
    • Michael Natterer's avatar
      themes/Default/images/stock-button-stroke.png · 780b93d9
      Michael Natterer authored
      2002-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* themes/Default/images/stock-button-stroke.png
      	* themes/Default/images/stock-button-to-path.png
      	* themes/Default/images/stock-button-to-selection.png: removed.
      
      	* themes/Default/images/stock-button-path-stroke.png
      	* themes/Default/images/stock-button-selection-stroke.png
      	* themes/Default/images/stock-button-selection-to-path.png: new ones.
      
      	* themes/Default/Makefile.am
      	* themes/Default/images/Makefile.am
      	* libgimpwidgets/gimpstock.[ch]: changed accordingly.
      
      	* themes/Default/images/stock-button-selection-add.png
      	* themes/Default/images/stock-button-selection-intersect.png
      	* themes/Default/images/stock-button-selection-replace.png
      	* themes/Default/images/stock-button-selection-subtract.png: cropped.
      
      	* themes/Default/images/tools/stock-tool-button-brightness-contrast.png:
      	a nicer one from Ville Pätsi.
      
      	* app/gui/menus.c
      	* app/widgets/gimpvectorslistview.c: use the new stock items.
      
      	* app/gui/dialogs-commands.c: create the new paths dialog, not the
      	old one in dialogs_lc_cmd_callback().
      
      	* app/gui/vectors-commands.c: some more s/Vectors/Path/ in
      	user-visible strings.
      
      	* app/app_procs.c: some test code for the filename -> uri migration.
      780b93d9
    • Michael Natterer's avatar
      app/core/Makefile.am new object for registering GimpPaintCore subclasses, · 6086f832
      Michael Natterer authored
      2002-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimppaintinfo.[ch]: new object for registering
      	GimpPaintCore subclasses, just like GimpToolInfo for tools.
      
      	* app/core/gimp.h: added gimp->paint_info_list to hold them.
      
      	* app/core/gimptoolinfo.[ch]: removed the "pdb_string" and
      	"paint_core_name" pointers and added a GimpPaintInfo pointer
      	instead.
      
      	* app/core/gimpimage-mask.c
      	* app/gui/vectors-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/tool_manager.c: changed accordingly.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added paint class registration stuff like
      	the tool_manager does.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: added register functions which are
      	called from paint_init().
      
      	The core object system lives not only in "core/", but in
      	core, paint, vectors, file, plug-in and xcf, so I had to hack
      	a bit to keep the deps working:
      
      	* app/pdb/pdb-types.h: don't include "paint/paint-types.h"...
      
      	* app/core/core-types.h: ...because it's included here. Moved
      	the inclusions of the core's subsystems' "foo/foo-types.h"
      	files to the end of the file.
      
      	* app/paint/Makefile.am: Some slimy radioactive uglyness.
      
      	* app/gui/drawable-commands.c
      	* app/tools/gimpblendtool.c: removed calling core functions via
      	the PDB because it makes no sense to do it manually in only a few
      	places.  This needs to be done generically using generated
      	wrappers living in "app/commands/" or something...
      6086f832
  23. 26 Feb, 2002 7 commits
    • Michael Natterer's avatar
      make absolute paths out of relative ones passed on the commandline so the · d9c23318
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c: make absolute paths out of relative ones
      	passed on the commandline so the GimpImagefiles can generate
      	previews.
      
      	* app/gui/Makefile.am
      	* app/gui/drawable-commands.[ch]: new files implementing menu
      	callbacks which work not just on layers.
      
      	* app/gui/layers-commands.[ch]: removed them here. Cleanup.
      
      	* app/gui/menus.c: changed accordingly.
      
      	* app/gui/brushes-commands.c
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c: cleanup. Added macros to get
      	rid of code duplication.
      d9c23318
    • Michael Natterer's avatar
      added a "item_activate_func" to the struct and the constructor so we can · 17c27e5e
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpitemlistview.[ch]: added a "item_activate_func"
      	to the struct and the constructor so we can distinguish double
      	click from right click in the callbacks.
      
      	* app/widgets/gimpvectorslistview.[ch]: added a "item_stroke_func".
      
      	* app/widgets/gimpchannellistview.c: reorder the "To Selection" button.
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      
      	* app/gui/menus.c: added separators and some new items to the
      	vectors menu. Use the SELECTION_REPLACE, _ADD, ... icons for
      	the resp. menu items.
      
      	* app/gui/vectors-commands.[ch]: added empty callbacks for the new
      	menu items, put the stroke stuff to an own function which is used
      	as "item_stroke_func" when creating GimpVectorsListViews.
      17c27e5e
    • Michael Natterer's avatar
      implemented gimp_image_mask_select_vectors() as simple wrapper around · 52d07c96
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask-select.[ch]: implemented
      	gimp_image_mask_select_vectors() as simple wrapper around
      	gimp_image_mask_select_polygon().
      
      	* app/gui/vectors-commands.c: call it from the "to selection"
      	callbacks.
      
      	* app/gui/channels-commands.c: use gimp_image_mask_select_channel()
      	instead of doing the same manually.
      
      	* app/paint/gimppencil.c: register as "GimpPencil", not
      	"GimpPencilCore".
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpvectorslistview.[ch]: new GimpItemListView
      	subclass featuring a "To Selection" and "Stroke" button.
      
      	* app/widgets/gimpitemlistview.c: create GimpVectorsListViews.
      52d07c96
    • Michael Natterer's avatar
      added gimp_paint_core_stroke_vectors() which strokes the whole vector · 5aa1c92f
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-stroke.[ch]: added
      	gimp_paint_core_stroke_vectors() which strokes the whole vector
      	using one undo step.
      
      	* app/gui/vectors-commands.c: use the new function.
      
      	* app/tools/gimpvectortool.c: changed to do evil voodoo in
      	gimp_vectors_tool_set_vectors() and thus to always find a
      	display to show the vectors.
      5aa1c92f
    • Simon Budig's avatar
      app/gui/vectors-commands.c app/tools/gimpvectortool.c fixed a name of a · 8b59fe87
      Simon Budig authored
      2002-02-26  Simon Budig  <simon@gimp.org>
      
              * app/gui/vectors-commands.c
              * app/tools/gimpvectortool.c
              * app/tools/gimpvectortool.h: fixed a name of a function
              and corrected gimp_vector_tool_set_vectors.
      8b59fe87
    • Michael Natterer's avatar
      Added some kind of paint core registry. It's ugly and will change... · a2bd2ac2
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	Added some kind of paint core registry. It's ugly and will change...
      
      	* app/core/gimp.c: call paint_init() and paint_exit().
      
      	* app/core/gimptoolinfo.[ch]: added "gchar *paint_core_name" to
      	the GimpToolInfo structure and the contstructor.
      
      	* app/tools/tool_manager.c: pass the class names of the
      	GimpPaintCore subclasses to gimp_tool_info_new().
      
      	* app/paint/Makefile.am
      	* app/paint/paint.[ch]: new files. Simlply ref/unref all paint
      	core classes so we can find them using g_type_from_name().
      
      	* app/paint/gimppaintcore-stroke.[ch]: changed to take an array
      	of GimpCoords, not just gdouble.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: convert the stroke array here.
      
      	* app/gui/vectors-commands.c: ad-hoc implementation of vectors
      	stroking.  Double click now sets the active vectors in the vectors
      	tool.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      a2bd2ac2
    • Michael Natterer's avatar
      renamed undo_push_layer_rename() to undo_push_item_rename(), so · b20880ad
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.[ch]: renamed undo_push_layer_rename() to
      	undo_push_item_rename(), so channel/vectors renaming is undoable.
      	Use "gsize" for all undo size variables. Cleanup.
      
      	* app/undo_types.h: s/LAYER_RENAME_UNDO/ITEM_RENAME_UNDO/.
      
      	* app/core/core-types.h: added LAYER_PROPERTIES_UNDO_GROUP.
      
      	* app/core/gimpimage.c: s/Vectors/Path/ in all user-visible strings.
      
      	* app/core/gimpitem.[ch]: cleanup.
      
      	* app/gui/menus.c: s/"New Path"/"New Path..."/, pass
      	"vectors_menu_update" to gimp_item_factory_new().
      
      	* app/gui/layers-commands.c: renaming the floating layer
      	transforms it into an ordinary layer. Push an undo group around
      	around both the "fs_to_layer" and the renaming.
      
      	* app/gui/channels-commands.c
      	* app/gui/vectors-commands.c: made renaming undoable, cleanup.
      
      	* app/widgets/gimpitemlistview.c: added an EEKY hack so "Delete"
      	is not broken any more for floating selections. Need a better
      	solution...
      b20880ad
  24. 25 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.c
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b
  25. 23 Feb, 2002 1 commit
    • Michael Natterer's avatar
      General undo cleanup: · a3c3e7d3
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	General undo cleanup:
      
      	* app/undo.[ch]: made all undo structs private. Changed all
      	undo_push_foo() functions to take useful parameters instead of
      	"gpointer foo_ptr" and create the undo structs internally.
      	Renamed lots of functions so they are more self-explanatory
      	(like undo_push_gimage_mod -> undo_push_image_size). Added some
      	undo functions (channel reordering is undoable now).  Never pass
      	in a UndoType, as they are reseved for groups now (see below).
      	Lots of cleanup and stuff...
      
      	* app/undo_types.h: is a private header now which defines "enum
      	UndoImplType" which is reserved for actual undo operations.
      	All enum values are named "FOO_UNDO".
      
      	* app/core/core-types.h: added the "UndoType" enum here and don't
      	include "undo_types.h" any more. The UndoType values are all
      	named "FOO_UNDO_GROUP" and are reserved for undo groups.
      
      	The ID space of actual undo operations and undo groups
      	is now strictly disjunct.
      
      	* app/core/gimpchannel.h
      	* app/core/gimpimage.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/paint/gimppaintcore.h
      	* app/tools/gimptransformtool.h: removed undo stuct definitions.
      
      	* app/undo_history.c
      	* app/path_transform.h
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      
      	* app/core/gimpimage.[ch]: added infrastructure for holding a
      	GimpList of GimpVectors objects. The API is the same as for layers
      	and channels. Not used yet.
      a3c3e7d3