1. 10 Jan, 2003 1 commit
    • Michael Natterer's avatar
      Move away from creating all item_factories statically in menus_init() but · 8d86ec25
      Michael Natterer authored
      2003-01-10  Michael Natterer  <mitch@gimp.org>
      	Move away from creating all item_factories statically in
      	menus_init() but create a new one for each place where one is
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpmenufactory.[ch]: new factory which creates and
      	configures the GimpItemFactories it knows about on-the-fly.
      	* app/widgets/gimpitemfactory.[ch]: added
      	gimp_item_factory_update() which calls the "update_func". Added
      	"gboolean update_on_popup" so item_factories can be configured to
      	require manual updates (used for the <Image> factory).
      	* app/gui/menus.[ch]: create a "global_menu_factory" and register
      	all menus we have with it. Added various setup functions which
      	do stuff like adding the "Open Recent" menu or reorder plug-in
      	menu entries. Removed the debugging stuff...
      	* app/gui/Makefile.am
      	* app/gui/debug-commands.[ch]: ...and added it here.
      	* app/gui/gui.c: create the <Toolbox>, the popup-<Image> and the
      	<Paths> factories here because they are still global.
      	* app/gui/plug-in-menus.[ch]: changed the "image_factory"
      	parameters to "item_factory" and create/update the entries for the
      	passed item_factory only. Makes the whole stuff much more
      	* app/plug-in/plug-ins.c: don't call plug_in_make_menu().
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: added "menu_factory" and
      	"popup_factory" parameters to gimp_display_new() and
      	gimp_display_shell_new(). Create the menubar_factory and the
      	qmask_factory dynamically. Pass the shell, not a Gimp to the QMask
      	callbacks. Changed gimp_display_shell_set_menu_sensitivity() to
      	gimp_display_shell_menu_update() and don't call it directly (it's
      	a GimpItemFactory update_func now). Call gimp_item_factory_update()
      	on the resp. factories instead.
      	* app/gui/qmask-commands.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/tools/gimpimagemaptool.c: changed accordingly.
      	* app/widgets/gimpbrusheditor.c
      	* app/widgets/gimpbrushfactoryview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdataeditor.[ch]
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdialogfactory.[ch]
      	* app/widgets/gimpdock.c
      	* app/widgets/gimpdockbook.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimpimageview.[ch]
      	* app/widgets/gimpitemlistview.[ch]
      	* app/widgets/gimppaletteeditor.[ch]: pass around lots of
      	GimpMenuFactory pointers and menu_identifiers so all views can
      	create their item_factories themselves. Unref the factories when
      	they are no longer needed because they belong to the views now.
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/dialogs.c
      	* app/gui/brush-select.c
      	* app/gui/gradient-select.c
      	* app/gui/palette-select.c
      	* app/gui/pattern-select.c: changed accordingly.
      	* app/gui/file-dialog-utils.[ch] (file_dialog_new): require
      	menu_factory and menu_identifier parameters.
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]: removed file_*_dialog_menu_init()
      	(they went to menus.c as setup_funcs). Added file_*_dialog_set_type()
      	and moved the <Load> and <Save> factory callbacks to file-commands.c
      	* app/gui/file-commands.[ch]: changed accordingly.
      	* app/gui/view-commands.c: changed the statusbar, menubar, rulers
      	and guides callbacks to do their job only if the setting has
      	actually changed. Don't update whole item factories afterwards.
      	Instead, just change the state of the items that actually need
      	* app/core/gimpchannel.c (gimp_channel_init): set "bounds_known"
      	and friends to FALSE since we don't know that the new channel will
      	be empty (fixes QMask and probably other stuff).
      	* app/gui/image-commands.c
      	* app/gui/vectors-commands.c: cleanup.
  2. 09 Jan, 2003 1 commit
  3. 05 Jan, 2003 5 commits
    • Manish Singh's avatar
      cast memsize to a guint instead of format change. Problem perhaps if · 82c16db5
      Manish Singh authored
      2003-01-05  Manish Singh  <yosh@gimp.org>
              * app/core/gimpobject.c: cast memsize to a guint instead of format
              change. Problem perhaps if get_size really is > 4 GB?
    • Manish Singh's avatar
      cleanup, removed unecessary G_OBJECT() casts. Should do the same for · 1a44f212
      Manish Singh authored
      2003-01-05  Manish Singh  <yosh@gimp.org>
              * many files in app, modules and libgimp*: cleanup, removed unecessary
              G_OBJECT() casts. Should do the same for plug-ins, when more of them
              get undeprecated.
    • Manish Singh's avatar
      oops, cast here instead of changing the format string so we're ok on · f44e1e92
      Manish Singh authored
      2003-01-05  Manish Singh  <yosh@gimp.org>
              * app/core/gimpimage-new.c: oops, cast here instead of changing the
              format string so we're ok on 32-bit too.
    • Manish Singh's avatar
      app/undo_history.c app/core/gimpbrush.c app/core/gimpimage-new.c · 013e30db
      Manish Singh authored
      2003-01-05  Manish Singh  <yosh@gimp.org>
              * app/undo_history.c
              * app/core/gimpbrush.c
              * app/core/gimpimage-new.c
              * app/core/gimpobject.c
              * app/core/gimppalette-import.c
              * app/core/gimppattern.c
              * app/plug-in/plug-in.c
              * app/tools/gimpbezierselecttool.c
              * libgimpwidgets/gimpunitmenu.c
              * plug-ins/MapObject/mapobject_ui.c
              * plug-ins/common/convmatrix.c
              * plug-ins/common/curve_bend.c
              * plug-ins/common/sample_colorize.c
              * plug-ins/common/tiff.c
              * plug-ins/flame/flame.c
              * plug-ins/gflare/gflare.c
              * plug-ins/gimpressionist/general.c
              * plug-ins/gimpressionist/orientation.c
              * plug-ins/gimpressionist/preview.c
              * plug-ins/gimpressionist/size.c
              * plug-ins/imagemap/imap_grid.c
              * plug-ins/imagemap/imap_menu.c
              * plug-ins/maze/algorithms.c
              * plug-ins/script-fu/interp_regex.c
              * plug-ins/script-fu/interp_sliba.c
              * plug-ins/script-fu/script-fu-console.c
              * plug-ins/script-fu/script-fu-server.c
              * plug-ins/webbrowser/webbrowser.c: added GINT_TO_POINTER and friends,
              fixed format strings, for 64-bitness.
              * modules/colorsel_triangle.c
              * plug-ins/tools/tool-safe-mode-plug-in.c: #include missing header
    • Sven Neumann's avatar
      redid the fix for bug #101036. Instead of temporarily changing the layer · 5dcf8da0
      Sven Neumann authored
      2003-01-05  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpimage-merge.c (gimp_image_merge_layers): redid the
      	fix for bug #101036. Instead of temporarily changing the layer
      	mode, just use a different mode for combine_regions().
  4. 03 Jan, 2003 1 commit
    • Sven Neumann's avatar
      bumped the version number to 1.3.12. · ec6c9865
      Sven Neumann authored
      2003-01-03  Sven Neumann  <sven@gimp.org>
      	* configure.in: bumped the version number to 1.3.12.
      	* app/display/Makefile.am
      	* app/display/gimpdisplayshell-cursor.[ch]
      	* app/display/gimpdisplayshell-title.[ch]
      	* app/display/gimpdisplayshell-transform.[ch]: new files with code
      	that used to live in gimpdisplayshell.c.
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptool.c: changed accordingly.
  5. 02 Jan, 2003 1 commit
    • Michael Natterer's avatar
      Replaced Garry's fix for bug #98843 by a more general solution which stops · ea95a322
      Michael Natterer authored
      2003-01-02  Michael Natterer  <mitch@gimp.org>
      	Replaced Garry's fix for bug #98843 by a more general solution
      	which stops the active tool when an undo group start is pushed:
      	* app/core/gimpimage.[ch]: removed the "layer_merge" signal
      	and added "undo_start" instead.
      	* app/undo.c: emit "undo_start" in undo_push_group_start()
      	_before_ checking if gimage->undo_on is TRUE.
      	* app/tools/tool_manager.c: connect to "undo_start" and HALT the
      	active tool if neccessary.
      	* app/core/core-types.h: added EDIT_COPY_UNDO_GROUP.
      	* app/core/gimpedit.c: push an undo group around the copy
      	operation. Will probably have to add more undo group types to wrap
      	other critical image modifications with.
      	* app/core/gimpimage-merge.c
      	* app/gui/convert-dialog.c
      	* app/gui/edit-commands.c
      	* app/gui/test-commands.c
      	* app/tools/gimpimagemaptool.c: removed all special code to
      	stop the active tool.
  6. 01 Jan, 2003 2 commits
    • Garry R. Osgood's avatar
      Updated my CVS. app/undo.c app/undo_history.c app/core/gimpimage.[ch] · d8fd3b04
      Garry R. Osgood authored
      2003-01-01 Garry R. Osgood <grosgood@rcn.com>
      * MAINTAINERS: Updated my CVS.
      * app/undo.c
      * app/undo_history.c
      * app/core/gimpimage.[ch]
      * app/tools/gimpimagemaptool.c
      * app/core/gimpimage-merge.c: implementation of LAYER_MERGE
      signal emitters and listeners. (see bug #98843); listeners thaw
      undo stack (image map tools, usually).
      * app/widgets/gimpviewabledialog.c: gimp_viewable_dialog_close ()
      Check if the widget has a non-null reference to a window before
      using it to synthesize a cancel event. These seven deltas closes bug #98843.
      * app/core/gimpimage-merge.c: (gimp_image_merge_layers())
      Regardless of merge type, temporarily set composition mode
      of bottom layer to NORMAL, then merge. Closes bug #101036.
    • Hans Breuer's avatar
      when checking for 'excecutable' make sure it is a regular file too (on · 8364722f
      Hans Breuer authored
      2003-01-01  Hans Breuer  <hans@breuer.org>
      	* libgimpbase/gimpdatafiles.c : when checking for
      	'excecutable' make sure it is a regular file too
      	(on win32 even directories carry the IXUSR flag)
      	* app/app_procs.h : there is still no #warning with
      	msvc, special case to make it build with non GCC
      	* makefile.msc */makefile.msc */*/makefile.msc : updated
      	* app/gui/user-install-dialog.c : get prototype for mkdir
      	* libgimpwidgets/libgimp-glue.c : make it compile without
      	LT_RELEASE being defined
      	* modules/module.def : removed
      	  modules/Makefile.am : no export file needed when
      	functions get exported by G_MODULE_EXPORT
  7. 30 Dec, 2002 2 commits
    • Sven Neumann's avatar
      use proper defines to specify the permissions when calling mkdir(). · 42b01c52
      Sven Neumann authored
      2002-12-30  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpimagefile.c (gimp_imagefile_png_thumb_path): use
      	proper defines to specify the permissions when calling mkdir().
      	* app/file/file-utils.c: removed redeclaration of mkdir() for
      	Win32 since we don't call mkdir() here.
      	* app/gui/user-install-dialog.c (user_install_run): rewrote
      	copy_file() to use GError for error reporting. Use the same code
      	for the user installation on all platforms. Also fixes bug #102015.
      	* data/misc/Makefile.am
      	* data/misc/user_install
      	* data/misc/user_install.bat: removed obsoleted scripts.
    • Sven Neumann's avatar
      app/app_procs.c app/core/gimp.c app/gui/gui.c removed debugging output. · 1f47a470
      Sven Neumann authored
      2002-12-30  Sven Neumann  <sven@gimp.org>
      	* app/app_procs.c
      	* app/core/gimp.c
      	* app/gui/gui.c
      	* app/widgets/gimpitemfactory.c: removed debugging output.
      	* app/plug-in/plug-ins.c: need to expand the plug_in_path before
      	using it.
      	* app/gui/plug-in-menus.c (plug_in_menus_init): removed an
      	unneeded assertion.
      	* plug-ins/imagemap/Makefile.am (EXTRA_DIST): removed references
      	to files that were removed some time ago.
  8. 29 Dec, 2002 2 commits
    • Sven Neumann's avatar
      another fix for #102016. · 75353108
      Sven Neumann authored
      2002-12-29  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpimagefile.c: another fix for #102016.
    • Sven Neumann's avatar
      configure.in etc/Makefile.am etc/gimprc.in removed templates for gimprc · 023c7697
      Sven Neumann authored
      2002-12-29  Sven Neumann  <sven@gimp.org>
      	* configure.in
      	* etc/Makefile.am
      	* etc/gimprc.in
      	* etc/gimprc_user.in: removed templates for gimprc files.
      	* etc/gimprc: added this file as generated by gimp-config-dump.
      	* app/gui/user-install-dialog.c
      	* data/misc/user_install: don't install an empty user gimprc.
      	* app/config/Makefile.am
      	* app/config/gimpconfig-substitute.[ch]: removed these files.
      	* app/config/gimpconfig-path.[ch]: and added them again with
      	reduced functionality. Paths found in config files are now
      	basically handled like standard strings by the config system.
      	Users of the GimpConfig path variables need to expand the path
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpconfig-deserialize.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-utils.c
      	* app/config/gimpconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimprc.c:
      	* app/base/base.c
      	* app/base/temp-buf.c
      	* app/core/gimp.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpmodules.c
      	* app/gui/user-install-dialog.c
      	* app/plug-in/plug-in.c
      	* app/tools/tools.c
      	* app/widgets/gimppropwidgets.c: changed accordingly.
  9. 28 Dec, 2002 1 commit
    • Simon Budig's avatar
      app/core/gimpimage-mask-select.c app/paint/gimppaintcore-stroke.c · d3e9fc64
      Simon Budig authored
      2002-12-29  Simon Budig  <simon@gimp.org>
              * app/core/gimpimage-mask-select.c
              * app/paint/gimppaintcore-stroke.c
              * app/tools/gimpvectortool.c
              * app/vectors/gimpbezierstroke.[ch]
              * app/vectors/gimpstroke.[ch]
              * app/vectors/gimpvectors-preview.c: some more stuff for the
              vectors tool: bezier interpolation is available, we have preview
              generation. Usage is still weird.
  10. 18 Dec, 2002 1 commit
    • Manish Singh's avatar
      added some rudimentary support to prepend values to existing environment · 2bb5acc2
      Manish Singh authored
      2002-12-17  Manish Singh  <yosh@gimp.org>
              * app/core/gimpenvirontable.[ch]: added some rudimentary support
              to prepend values to existing environment variables. You can do
              "separator name=value" now. API change to gimp_environ_table_add
              for it too. Also added some error checking.
              * app/gui/gui.c: change to new above API
              * plug-ins/pygimp/Makefile.am: write ": PYTHONPATH=" out to env
              * po/POTFILES.in: add gimpenvirontable.c
  11. 14 Dec, 2002 1 commit
    • Michael Natterer's avatar
      Changed menubar showing/hiding to work like rulers and statusbar: · f03b6b6d
      Michael Natterer authored
      2002-12-14  Michael Natterer  <mitch@gimp.org>
      	Changed menubar showing/hiding to work like rulers and statusbar:
      	* app/config/gimpconfig-blurbs.h
      	* app/config/gimpdisplayconfig.[ch]: renamed "menu_bar_per_display"
      	to "show_menubar". Removed GIMP_PARAM_RESTART flag.
      	* app/display/gimpdisplayshell.[ch]: chaged shell->item_factory to
      	shell->menubar_factory plus shell->popup_factory and always create
      	both of them. Added "gboolean update_popup" to
      	gimp_display_shell_set_menu_sensitivity() and call it recursively
      	with update_popup == TRUE if the display it is called for is the
      	active one.
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c: changed accordinly.
      	* app/gui/gui.c: ditto. Set the menu sensitivity of new displays.
      	* app/gui/menus.c: added "<Image>/View/Toggle Menubar" menu item.
      	Moved some factory initialization code from gimpdisplayshell.c
      	* app/gui/view-commands.[ch]: added
      	view_toggle_menubar_cmd_callback(). Update the menu sensitivity
      	manually in all callbacks which don't call gimp_image_flush().
      	* app/gui/preferences-dialog.c (prefs_dialog_new): moved the "Show
      	Menubar" toggle to the "Appearance" frame of the "Image Windows"
      	page. Added an own frame for the display zoom/scaling settings.
      	(preferences_dialog_create): Attach config_copy and config_orig
      	using g_object_set_data_full() instead of just g_object_set_data()
      	plus a g_object_weak_ref().
      	(prefs_default_resolution_callback): set the resolution for both
      	fields of the "size_sizeentry" instead of setting it for "x"
  12. 05 Dec, 2002 2 commits
    • Michael Natterer's avatar
      Cleaned up the exit process: · b2c3f018
      Michael Natterer authored
      2002-12-05  Michael Natterer  <mitch@gimp.org>
      	Cleaned up the exit process:
      	* app/core/gimp.[ch]: added an "exit" signal which carries a
      	"gboolean kill_it" parameter and has a boolean return value.
      	Added gimp_boolean_handled_accumulator() so the emission of "exit"
      	can be stopped by returning TRUE from a callback.  Removed
      	gimp_shutdown() from the public API and made it "exit"'s default
      	implementation. Addec gimp_exit() to emit the signal.
      	* app/core/gimpmarshal.list: added BOOLEAN__BOOLEAN marshaller.
      	* app/gui/gui.[ch]: Replaced public functions gui_shutdown() and
      	gui_exit() by "exit" callbacks. g_signal_connect_after() the
      	latter so the shutdown order is correct.
      	* app/app_procs.[ch]: removed app_exit() and connect to "exit".
      	Split the exit stuff into normal and connect_after callbacks as
      	* app/batch.c
      	* app/gui/file-commands.c
      	* tools/pdbgen/pdb/misc.pdb
      	* app/widgets/gimptoolbox.c: call gimp_exit() instead of
      	app_exit(). Don't #include "app_procs.h".
      	* app/pdb/misc_cmds.c: regenerated.
    • Sven Neumann's avatar
      use the same string as in gimpbrushpipe.c to reduce the number of · bb7ff29e
      Sven Neumann authored
      2002-12-05  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpbrushpipe.c: use the same string as in
      	gimpbrushpipe.c to reduce the number of translatable strings.
  13. 02 Dec, 2002 2 commits
    • Sven Neumann's avatar
      don't check filename for internal GimpData objects because they are never · cdeba56b
      Sven Neumann authored
      2002-12-02  Sven Neumann  <sven@gimp.org>
      	* app/core/gimpdata.c (gimp_data_save): don't check filename for
      	internal GimpData objects because they are never saved.
      	* app/config/gimprc.c: made verbose an object property so that its
      	value is copied by gimp_config_duplicate().
    • Michael Natterer's avatar
      use GError for reporting load/save errors. Added gimp_data_error_quark() · 4ccd0f0a
      Michael Natterer authored
      2002-12-02  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpdata.[ch]: use GError for reporting load/save
      	errors. Added gimp_data_error_quark() and a GimpDataError enum.
      	Made simple virtual functions out of save(), get_extension()
      	and duplicate() because they don't need to be signals.
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch]: changed accordingly. Set data->dirty
      	to FALSE in each _load() function.
      	* app/core/gimpdatafactory.[ch]: report GError messages here.
      	Changed the ugly factory->path pointer location hack to
      	factory->path_property_name and get the path from
      	factory->gimp->config. Added gimp_data_factory_data_duplicate()
      	implementation which was already declared in the header.
      	* app/core/gimp.c: pass the path property name to
      	* app/widgets/gimpdatafactoryview.c: removed the duplicate
      	implementation and call gimp_data_factory_data_duplicate().
      	* app/core/gimpgradient.[ch]: added gimp_gradient_save_as_pov().
      	* app/gui/gradients-commands.c: removed save_as_pov implementation
      	and call gimp_gradient_save_as_pov().
  14. 01 Dec, 2002 3 commits
    • Sven Neumann's avatar
      prefix PIXELS and POINTS with GIMP instead of SIZE so we don't break the · c838165e
      Sven Neumann authored
      2002-12-01  Sven Neumann  <sven@gimp.org>
      	* app/core/core-types.h: prefix PIXELS and POINTS with GIMP
      	instead of SIZE so we don't break the libgimp API without a good
      	* app/pdb/text_tool_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      	* libgimp/gimpmisc.[ch]: removed gimp_timer functions since the
      	GTimer API is simple enough and doesn't need to be wrapped.
      	* plug-ins/common/newsprint.c
      	* plug-ins/common/unsharp.c: use GTimer.
    • Hans Breuer's avatar
      updated · 7c7ff46c
      Hans Breuer authored
      2002-11-30  Hans Breuer  <hans@breuer.org>
      	* */makefile.msc */*/makefile.msc : updated
      	* themes/Default/images/makefile.msc : new file
      	* themes/Default/makefile.msc : removed
      	* libgimpwidgets/gimpwidgets.def : updated
      	* app/core/core-types.h : renamed PIXELS and POINTS
      	to SIZE_* to avoid clashes with system headers
      	* app/pdb/text_tool_cmds.c : updated ...
      	* tools/pdbgen/enums.py : ... by renaming here too.
      	* app/widgets/gimphistogrambox.c : <string.h> for memcpy()
      	* app/widgets/gimppropwidgets.c : <string.h> for strlen()
      	* app/config/gimpconfig.c : on win32 rename always fails
      	if the destination file exists. Delete it first.
      	* libgimp/gimp.def : removed all '_'-prefixed exports
      	* plug-ins/common/iwarp.c : replace _gimp_layer_copy()
      	with gimp_layer_copy(), gimp_layer_add_alpha()
      	* libgimp/gimpmisc.c : ported gimp_timer funcs to use
      	g_timer to be more portable
      	* libgimpbase/gimpdatafiles.c : there are no symlinks on
      	win32, inverted to #ifndef G_OS_WIN32 as it was meant.
      	* libgimpbase/gimpbase.def libgimpmodule/gimpmodule.def
      	  libgimpwidgets/gimpwidgets.def : updated externals
      	* plug-ins/common/randomize.c plug-ins/common/sinus.c :
      	don't initialize more than the defined struct size
      	* plug-ins/common/warp.c : removed unneeded unistd.h and
      	signal.h include
      	* regexrepl/regexrepl.def : (new file) needed to build
      	as DLL
    • Michael Natterer's avatar
      added "gboolean use_shm" to the Gimp struct and to gimp_new(). · 319173b1
      Michael Natterer authored
      2002-12-01  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimp.[ch]: added "gboolean use_shm" to the Gimp struct
      	and to gimp_new().
      	* app/app_procs.c: pass "use_shm" to gimp_new().
      	* app/plug-in/plug-in.c (plug_in_init): get "use_shm" from the
      	passed "gimp".  Don't include "appenv.h" and "app_procs.h".
  15. 30 Nov, 2002 2 commits
    • Michael Natterer's avatar
      removed the global "base_config" variable. · 5c86e639
      Michael Natterer authored
      2002-11-30  Michael Natterer  <mitch@gimp.org>
      	* app/base/base-types.h: removed the global "base_config" variable.
      	* app/base/base.[ch]: added "gboolean use_mmx" to base_init().
      	Don't #include "appenv.h". Pass around more parameters to reduce
      	the usage of the global "paint_options" pointer.
      	* app/app_procs.c: pass "use_mmx" to base_init().
      	* app/base/temp-buf.c: pass "temp_path" around internally. Declare
      	"base_config" extern and added a #warning.
      	* app/core/gimpdata.[ch]
      	* app/core/gimpbrush.[ch]
      	* app/core/gimpbrushgenerated.[ch]
      	* app/core/gimpbrushpipe.[ch]
      	* app/core/gimpgradient.[ch]
      	* app/core/gimppalette.[ch]
      	* app/core/gimppattern.[ch]: added "gboolean stingy_memory_use"
      	parameters to all _new(), _load() and _duplicate() functions.
      	* app/core/gimpmarshal.list: GimpData::duplicate needs an
      	OBJECT__BOOLEAN marshaller now.
      	* app/core/gimpdatafactory.[ch]: added a "Gimp" pointer so the
      	factory can find the config. Pass base_config->stingy_memory_use
      	to the GimpData functions changed above.
      	* app/core/gimp-gradients.c
      	* app/core/gimp.c
      	* app/core/gimppalette-import.c
      	* app/gui/palettes-commands.c
      	* app/widgets/gimpdatafactoryview.c: changed accordingly.
      	* app/core/gimpcontext.c: get "stingy_memory_use" from
    • Michael Natterer's avatar
      added gimp->edit_config which is a copy of gimp->config except for · 64eb7d74
      Michael Natterer authored
      2002-11-30  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimp.[ch]: added gimp->edit_config which is a copy of
      	gimp->config except for GIMP_PARAM_RESTRT options. Create it in
      	gimp_set_config() which must be called before anything else after
      	gimp_new(). Install "notify" handlers between the both to keep
      	them up-to-date. Enable auto saving for the edit_config.
      	* app/app_procs.c: call gimp_set_config().
      	* tools/pdbgen/pdb/gimprc.pdb: use gimp->edit_config here so we
      	don't accidentially change GIMP_PARAM_RESTART values from the PDB.
      	* app/pdb/gimprc_cmds.c: regenerated.
      	* app/gui/preferences-dialog.c: use gimp->edit_config as the base
      	for all prefs operations. Disable auto saving while the prefs
      	dialog is open. No need any more to parse the saved gimprc to get
      	GIMP_PARAM_RESTART values. Removed GIMP_PARAM_RESTART special
      	hacks because edit_config handles them transparently for us.
      	* app/core/gimpimage.c (gimp_image_init): initialize active_vectors.
      	* app/gui/gui.c (gui_image_disconect): when the last image
      	disappears, show the toolbox only if the image had a display.
  16. 28 Nov, 2002 1 commit
    • Sven Neumann's avatar
      app/config/Makefile.am removed ... ... and readded under this name. · b92d38ce
      Sven Neumann authored
      2002-11-28  Sven Neumann  <sven@gimp.org>
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params-blurbs.h: removed ...
      	* app/config/gimpconfig-blurbs.h: ... and readded under this name.
      	Defined all missing blurb definitions to NULL.
      	* app/config/gimpconfig-params.h: added a blurb parameter to all
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c: register blurbs with the GimpRc
      	* app/config/gimpconfig-serialize.c: do proper line-breaking for
      	* app/core/gimpcontext.c
      	* app/widgets/gimpdeviceinfo.c: register NULL blurbs here.
  17. 27 Nov, 2002 1 commit
    • Sven Neumann's avatar
      added (yet unused) autosave feature. · cfd1c729
      Sven Neumann authored
      2002-11-27  Sven Neumann  <sven@gimp.org>
      	* app/config/gimprc.[ch]: added (yet unused) autosave feature.
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushpipe.c: simplified user-visible messages.
  18. 25 Nov, 2002 1 commit
    • Manish Singh's avatar
      moved FINITE definition to $extra code. Changed to use #elif, much · 2b16283b
      Manish Singh authored
      2002-11-24  Manish Singh <yosh@gimp.org>
              * tools/pdbgen/pdb/image.pdb: moved FINITE definition to $extra
              code. Changed to use #elif, much cleaner.
              * app/pdb/image_cmds.c: regenerated
              * app/core/gimpenvirontable.[ch]: added support for app internal
              environment variable settings. These override any *.env files if
              there are collisions. Not sure on that policy. Also, envp is now
              generated on the first get_envp call.
              * app/gui/gui.[ch]: added gui_environ_init, which uses
              gimp_environ_table_add. Moved the setting of DISPLAY to here.
              Added setting of GDK_DISPLAY instead for the fb backends. Hm,
              perhaps GDK should do this itself...
              * app_procs.c: call gui_environ_init.
              * libgimpwidgets/gimpcolorscale.c
              * libgimpwidgets/gimpcolorscales.c: #include <string.h> for
              strlen and memcpy.
  19. 23 Nov, 2002 1 commit
    • Michael Natterer's avatar
      removed gimp_config_values_equal(). · 4ce4adf8
      Michael Natterer authored
      2002-11-23  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-utils.[ch]: removed
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpconfig.c: use g_param_values_cmp() instead so
      	our registered compare methods are used.
      	* app/config/gimpdisplayconfig.[ch]: added "canvas_padding_mode"
      	and "canvas_padding_color" properties.
      	* app/display/display-enums.[ch]: added enum GimpDisplayPaddingMode
      	which can be one of { theme, light check, dark check, custom }.
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplay-handlers.c: removed cached monitor
      	resolution values...
      	* app/display/gimpdisplayshell.[ch]: ...and added them here. Added
      	padding state as in GimpDisplayConfig. Added utility function
      	gimp_display_shell_set_padding() which hides all the details.
      	Added the new padding modes to the padding color button's context
      	* app/display/gimpdisplayshell-callbacks.[ch]: don't fiddle
      	with colors manually but use gimp_display_shell_set_padding()
      	in realize() and in the color button callbacks.
      	* app/display/gimpdisplayshell-handlers.c: connect to
      	notify::monitor-[xy]resolution and
      	notify::canvas-padding-[mode|color] and update accordingly.
      	* app/widgets/gimppropwidgets.[ch]: added
      	* app/widgets/gimpdialogfactory.[ch]: added
      	gimp_dialog_factories_session_clear() (unimplemented).
      	* app/gui/preferences-dialog.c: added widgets for padding mode and
      	color. Removed some callbacks by connecting the functions they
      	called directly. Cleanup.
  20. 21 Nov, 2002 1 commit
    • Michael Natterer's avatar
      added tile_cache_init() and tile_cache_exit() as public functions. · 024061d9
      Michael Natterer authored
      2002-11-21  Michael Natterer  <mitch@gimp.org>
      	* app/base/tile-cache.[ch]: added tile_cache_init() and
      	tile_cache_exit() as public functions.
      	* app/base/base.c: call them. Connect to GimpBaseConfig's
      	* app/core/gimpimage.c: connect to notify::transparency-type and
      	notify::transparency-size and call
      	gimp_image_invalidate_layer_previews() in the callback.
      	* app/display/gimpdisplay-foreach.[ch]: removed
      	* app/display/gimpdisplayshell-handlers.c: connect to
      	notify::transparency-type and notify::transparency-size and expose
      	the shell in the callback.
      	* app/display/gimpdisplayshell-render.[ch]: added render_init()
      	and render_exit() functions and connect to
      	notify::transparency-type and notify::transparency-size for
      	setting up the render buffers.
      	* app/gui/gui.c: call the new functions instead of render_setup().
      	Connect to notify::show-tool-tips.
      	* app/gui/preferences-dialog.c: copy values between the global
      	config object and its local clone only when they have changed.
      	Wrap setting of lots of values in g_object_[freeze|thaw]_notify().
      	Added lots of mnemonics.
      	* app/gui/resolution-calibrate-dialog.c: added mnemonics.
      	* app/widgets/gimppropwidgets.c: g_object_set() the values edited
      	by the gimp_prop_coordinates() much less often by remembering the
      	old values and setting them only when they have changed.
  21. 20 Nov, 2002 2 commits
    • Michael Natterer's avatar
      added GIMP_PARAM_RESTART and GIMP_PARAM_CONFIRM flags and changed all · 8b6ec3b3
      Michael Natterer authored
      2002-11-20  Michael Natterer  <mitch@gimp.org>
      	* app/config/gimpconfig-params.h: added GIMP_PARAM_RESTART and
      	GIMP_PARAM_CONFIRM flags and changed all param spec macros
      	to have a "flags" parameter.
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c: tag the values which need restart or
      	confirmation with the resp. flags. Changed all macro calls
      	* app/core/gimpcontext.c
      	* app/widgets/gimpdeviceinfo.c: changed macro calls accordingly.
    • Dave Neary's avatar
      configure.in app/core/gimpbrushpipe.c app/gui/about-dialog.c · cd28dee8
      Dave Neary authored
      2002-11-20  Dave Neary  <bolsh@gimp.org>
              * configure.in
              * app/core/gimpbrushpipe.c
              * app/gui/about-dialog.c
              * app/paint-funcs/paint-funcs-generic.h
              * app/paint-funcs/paint-funcs.c
              * libgimpmath/gimpmath.h
              * libgimpwidgets/gimpwidgets.c
              * plug-ins/common/CML_explorer.c
              * plug-ins/common/blur.c
              * plug-ins/common/cubism.c
              * plug-ins/common/gee.c
              * plug-ins/common/gee_zoom.c
              * plug-ins/common/gqbist.c
              * plug-ins/common/jigsaw.c
              * plug-ins/common/lic.c
              * plug-ins/common/noisify.c
              * plug-ins/common/nova.c
              * plug-ins/common/papertile.c
              * plug-ins/common/plasma.c
              * plug-ins/common/randomize.c
              * plug-ins/common/sample_colorize.c
              * plug-ins/common/scatter_hsv.c
              * plug-ins/common/shift.c
              * plug-ins/common/sinus.c
              * plug-ins/common/smooth_palette.c
              * plug-ins/common/snoise.c
              * plug-ins/common/sparkle.c
              * plug-ins/common/spheredesigner.c
              * plug-ins/common/spread.c
              * plug-ins/common/warp.c
              * plug-ins/common/wind.c
              * plug-ins/flame/cmap.c
              * plug-ins/flame/flame.c
              * plug-ins/flame/libifs.c
              * plug-ins/gflare/gflare.c
              * plug-ins/gimpressionist/gimpressionist.c
              * plug-ins/gimpressionist/gimpressionist.h
              * plug-ins/gimpressionist/plasma.c
              * plug-ins/gimpressionist/repaint.c
              * plug-ins/ifscompose/ifscompose_utils.c
              * plug-ins/maze/algorithms.c
              * plug-ins/maze/maze.c
              * plug-ins/maze/maze.h
              * plug-ins/mosaic/mosaic.c: Change all occurrences of RAND_MAX,
              G_MAXRAND, rand(), srand(), lrand48(), srand48(), random(),
              srandom(), RAND_FUNC and SRAND_FUNC to the appropriate g_rand*
              equivalent. Programs which require seed setting for reproducible
              results, and anything in the core, gets a dedicated GRand * for
              the lifetime required. Programs which only ever used random
              numbers for tossing a coin, rolling a dice, etc use g_random
              functions. For the rest, judgement was used. Where it was easy, a
              GRand * object was used and g_rand_* functions were
              preferred. This fixes bug #67386 in HEAD.
  22. 18 Nov, 2002 1 commit
    • Sven Neumann's avatar
      Finally landed the new GimpConfig based gimprc parser. It's not finished · 073e533a
      Sven Neumann authored
      2002-11-18  Sven Neumann  <sven@gimp.org>
      	Finally landed the new GimpConfig based gimprc parser. It's not
      	finished yet but we need to start somewhere. This release removes
      	the old gimprc.[ch] files. The gimprc format changes slightly, but
      	the changes are minimal. The Preferences dialog is temporarily
      	disabled since it still needs to be ported. If you are are afraid,
      	stay away from CVS for a few days ;-)
      	* app/Makefile.am
      	* app/gimprc.[ch]: removed the old gimprc system.
      	* app/base/Makefile.am
      	* app/base/base-config.[ch]: removed these files in favor of
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: removed these files in favor of
      	* app/config/Makefile.am
      	* app/config/config-types.h: moved typedefs into this new file.
      	* app/config/gimpbaseconfig.[ch]
      	* app/config/gimpcoreconfig.[ch]
      	* app/config/gimpdisplayconfig.[ch]
      	* app/config/gimpguiconfig.[ch]
      	* app/config/gimprc.[ch]
      	* app/config/test-config.c: brought into shape for real use.
      	* app/base/base-types.h: include config/config-types.h here. Added
      	a global GimpBaseConfig *base_config variable to ease migration.
      	* app/gui/Makefile.am: temporarily disabled the preferences dialog.
      	* app/app_procs.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/base/base.[ch]
      	* app/base/gimphistogram.c
      	* app/base/pixel-processor.c
      	* app/base/temp-buf.c
      	* app/base/tile-cache.c
      	* app/core/core-types.h
      	* app/core/gimp-documents.c
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpmodules.c
      	* app/core/gimppattern.c
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-layer-select.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpnavigationview.c
      	* app/file/file-save.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/gui/paths-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/session.c
      	* app/gui/test-commands.c
      	* app/gui/tips-dialog.c
      	* app/gui/tips-dialog.h
      	* app/gui/user-install-dialog.c
      	* app/gui/view-commands.c
      	* app/paint/gimppaintcore.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimptexttool.[ch]
      	* app/tools/selection_options.c
      	* app/tools/tools.c
      	* app/tools/transform_options.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimpselectioneditor.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: use the new config system
      	instead of the old gimprc stuff.
      	* etc/gimprc.in
      	* etc/gimprc_user.in: adapted to the new gimprc format. Will update
      	the man-page later...
      	* app/pdb/fileops_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpgimprc_pdb.c: regenerated.
  23. 17 Nov, 2002 2 commits
  24. 12 Nov, 2002 1 commit
    • Manish Singh's avatar
      don't say "Now type 'make'" if configure failed. · 2eef2afb
      Manish Singh authored
      2002-11-11  Manish Singh  <yosh@gimp.org>
              * autogen.sh: don't say "Now type 'make'" if configure failed.
              * app/core/Makefile.am
              * app/core/core-types.h
              * app/core/gimpenvirontable.[ch]: Implemented GimpEnvironTable,
              keeps an envp array built from system environment and *.env files.
              * app/core/gimp.[ch]: keep a GimpEnvironTable around.
              * app/gimprc.c
              * app/config/gimpcoreconfig.[ch]
              * app/core/gimpcoreconfig.h
              * app/gui/preferences-dialog.c
              * app/gui/user-install-dialog.c: environ-path config stuff
              * themes/Default/images/preferences/Makefile.am
              * themes/Default/images/preferences/folder-environ.png: just copied
              folder.png here, need a better one.
              * app/plug-in/plug-in.c: quick hack to use the envp in the
              GimpEnvironTable. Only on unix now, should really port the
              code to use g_spawn_*.
              * data/misc/user_install
              * etc/gimprc.in: add environ-path stuff
              * data/environ/Makefile: creates system environ directory.
              * data/environ/default.env: sample env file info.
              * data/Makefile.am
              * configure.in: added data/environ dir
              * plug-ins/pygimp/Makefile.am: python module files get put in
              $(gimpplugindir)/python now, install pygimp.env to point to it.
              * plug-ins/pygimp/doc/Makefile.am: minor clean up.
  25. 09 Nov, 2002 1 commit
    • Michael Natterer's avatar
      the transformed tile_manager has always an alpha channel, so use · 2fd6f782
      Michael Natterer authored
      2002-11-10  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	the transformed tile_manager has always an alpha channel, so use
      	gimp_drawable_type_with_alpha() when creating a layer from it
      	using gimp_layer_new_from_tiles(). Fixes bug #98053.
  26. 30 Oct, 2002 1 commit
    • Michael Natterer's avatar
      don't g_message() on error but return a GError. · 65d5e587
      Michael Natterer authored
      2002-10-30  Michael Natterer  <mitch@gimp.org>
      	* app/core/gimpdata.[ch] (gimp_data_delete_from_disk): don't
      	g_message() on error but return a GError.
      	* app/widgets/gimpdatafactoryview.c: show the message here.