1. 17 Jan, 2003 3 commits
    • Michael Natterer's avatar
      One more Plug-In cleanup, it's still a mess... · a31c0f7d
      Michael Natterer authored
      2003-01-17  Michael Natterer  <mitch@gimp.org>
      
      	One more Plug-In cleanup, it's still a mess...
      
      	* app/plug-in/plug-in-def.[ch]: renamed "gboolean query" field
      	to "needs_query". Added setters for all values. Added
      	g_return_if_fail() stuff to all functions.
      
      	* app/plug-in/plug-in-proc.[ch]: added plug_in_proc_def_new().
      	Removed the "gboolean data_only" parameter from
      	plug_in_proc_def_destroy() and renamed it to
      	plug_in_proc_def_free().  Added plug_in_proc_def_get_progname()
      	which handles GIMP_TEMPORARY procedures correctly.
      
      	* app/plug-in/plug-in-rc.c: use the new stuff above.
      
      	* app/plug-in/plug-in.[ch]: renamed field "user_data" to
      	"plug_in_def" and added a comment that it is valid only during
      	query() and init().  Use the new APIs above. Pass meaningful
      	locale_domains and help_paths when adding temporary procedures
      	(fixes Scrip-Fu menu translation the right way (TM)). Cleanup.
      
      	* app/plug-in/plug-ins.[ch]: renamed plug_ins_def_add() to
      	plug_ins_def_add_from_rc(). Renamed plug_ins_proc_def_[add|remove]()
      	to plug_ins_temp_proc_def_[add|remove](). Added "Gimp" parameters
      	to plug_ins_help_path() and plug_ins_locale_domain(). Removed
      	unused pre-1.2 cruft "gimprc_prof_defs" and plug_ins_image_types().
      	Reverse gimp->load_procs and gimp->save_procs after all procedures
      	are registered. Removed Script-Fu translation hack. Reordered stuff.
      
      	* app/gui/plug-in-menus.[ch]: changed accordingly. Named all
      	public functions plug_in_menus_*(). Fixed Script-Fu menu translation
      	by using plug_in_proc_def_get_progname(). Cleanup.
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c: don't g_slist_reverse() gimp->load_procs
      	and gimp->save_procs here.
      
      	* app/gui/toolbox-menu.c
      	* app/gui/image-menu.c
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/help_cmds.c
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	Unrelated:
      
      	* app/gui/image-menu.c
      	* app/widgets/gimpitemfactory.c: s/"tearoff1"/"tearoff"/g. I don't
      	get why the "1" was there. Minor cleanup.
      a31c0f7d
    • Maurits Rijk's avatar
      Fix for #81966 · c0a8755f
      Maurits Rijk authored
      c0a8755f
    • Sven Neumann's avatar
      app/tools/gimplevelstool.c moved the creation of the histogram object to · 5653afe3
      Sven Neumann authored
      2003-01-17  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpthresholdtool.c: moved the creation of the
      	histogram object to the initialize method because we can't access
      	tool_info->gimp in tool_init().
      5653afe3
  2. 16 Jan, 2003 1 commit
  3. 15 Jan, 2003 5 commits
    • Sven Neumann's avatar
      Fixed bug #103561: · bb9a49ab
      Sven Neumann authored
      2003-01-15  Sven Neumann  <sven@gimp.org>
      
      	Fixed bug #103561:
      
      	* app/base/gimphistogram.[ch]: cleaned up multi-processor code,
      	added a GimpBaseConfig parameter to gimp_histogram_new().
      
      	* app/core/gimpdrawable-equalize.c
      	* app/pdb/color_cmds.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpthresholdtool.c
      	* tools/pdbgen/pdb/color.pdb: changed accordingly.
      
      	* app/base/pixel-processor.c: some cleanup to the multi-processor
      	code; use the global base_config variable :(
      bb9a49ab
    • Ole Laursen's avatar
      Updated Danish translation. · 967861bb
      Ole Laursen authored
      2003-01-15  Ole Laursen  <olau@hardworking.dk>
      
      	* da.po: Updated Danish translation.
      967861bb
    • Manish Singh's avatar
      app/core/gimpchannel.h app/core/gimpitem.c · 248dbd1e
      Manish Singh authored
      2003-01-14  Manish Singh  <yosh@gimp.org>
      
              * app/core/gimpchannel.h
              * app/core/gimpitem.c
              * app/display/gimpnavigationview.c
              * app/gui/paths-dialog.c
              * app/tools/gimphistogramtool.c
              * app/tools/gimpscaletool.c
              * app/widgets/gimplistitem.c
              * libgimp/gimppixelrgn.c
              * libgimpwidgets/gimpunitmenu.c
              * plug-ins/FractalExplorer/Dialogs.c
              * plug-ins/common/aa.c
              * plug-ins/common/despeckle.c
              * plug-ins/common/psd.c
              * plug-ins/common/sharpen.c
              * plug-ins/common/snoise.c
              * plug-ins/common/spread.c
              * plug-ins/ifscompose/ifscompose.c
              * plug-ins/xjt/xjt.c: some minor code cleanup
      
              * plug-ins/common/csource.c: 64-bit cleanliness
      248dbd1e
    • Manish Singh's avatar
      Oops, the configure.in change below didn't actually work. Refactored so it · 5bf67a3c
      Manish Singh authored
      2003-01-14  Manish Singh  <yosh@gimp.org>
      
              * configure.in: Oops, the configure.in change below didn't actually
              work. Refactored so it does.
      5bf67a3c
    • Christian Rose's avatar
      Updated Swedish translation. · 6cfc050f
      Christian Rose authored
      2003-01-15  Christian Rose  <menthos@menthos.com>
      
      	* sv.po: Updated Swedish translation.
      6cfc050f
  4. 14 Jan, 2003 10 commits
  5. 13 Jan, 2003 3 commits
    • Michael Natterer's avatar
      added the new app/gui/*-menu.c files. · 5cff2617
      Michael Natterer authored
      2003-01-13  Michael Natterer  <mitch@gimp.org>
      
      	* POTFILES.in: added the new app/gui/*-menu.c files.
      5cff2617
    • Michael Natterer's avatar
      app/gui/brushes-menu.[ch] app/gui/buffers-menu.[ch] · 6f29b766
      Michael Natterer authored
      2003-01-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/file-open-menu.[ch]
      	* app/gui/file-save-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/image-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/toolbox-menu.[ch]
      	* app/gui/vectors-menu.[ch]: new files, one per GimpItemFactory,
      	containing the menu entries and their setup and update funcs.
      
      	* app/gui/brushes-commands.[ch]
      	* app/gui/patterns-commands.[ch]: removed because they contained
      	only update funcs.
      
      	* app/gui/Makefile.am: changed accordingly. Split the huge
      	SOURCES list in smaller ones for menus and dialogs.
      
      	* app/gui/menus.[ch]: removed the menu entries and setup funcs.
      	Added MENU_SEPARATOR() and MENU_BRANCH() macros to the header.
      	Made some utility functions public.
      
      	* app/display/gimpdisplayshell.[ch]
      	* app/gui/buffers-commands.[ch]
      	* app/gui/channels-commands.[ch]
      	* app/gui/colormap-editor-commands.[ch]
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/documents-commands.[ch]
      	* app/gui/gradient-editor-commands.[ch]
      	* app/gui/gradients-commands.[ch]
      	* app/gui/images-commands.[ch]
      	* app/gui/layers-commands.[ch]
      	* app/gui/palette-editor-commands.[ch]
      	* app/gui/palettes-commands.[ch]
      	* app/gui/qmask-commands.[ch]
      	* app/gui/vectors-commands.[ch]: removed the update funcs.
      
      	* app/gui/plug-in-menus.[ch]: renamed plug_in_set_menu_sensitivity()
      	to plug_in_menus_update(). Cleanup.
      
      	* app/gui/paths-dialog.[ch]: added the <Paths> entries here
      	so they will go away together with these files.
      
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c: removed useless #includes.
      6f29b766
    • Sven Neumann's avatar
      Changed my mind again and decided that gimpconfig-dump should create · 2e591534
      Sven Neumann authored
      2003-01-13  Sven Neumann  <sven@gimp.org>
      
      	Changed my mind again and decided that gimpconfig-dump should
      	create gimprc-1.3.5.in and have configure process it.
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-dump.c: create gimprc-1.3.5.in to be
      	processed by configure.
      
      	* configure.in
      	* docs/Makefile.am
      	* docs/gimprc-1.3.5: removed again ...
      	* docs/gimprc-1.3.5.in: ... and replaced with a new version
      	generated by gimpconfig-dump.
      2e591534
  6. 12 Jan, 2003 6 commits
    • Sven Neumann's avatar
      app/config/Makefile.am app/config/gimpconfig-dump.c more work on · e0ea1dbc
      Sven Neumann authored
      2003-01-13  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpconfig-serialize.c: more work on gimpconfig-dump.
      
      	* configure.in
      	* docs/Makefile.am
      	* docs/gimprc-1.3.5.in: removed ...
      	* docs/gimprc-1.3.5: ... and replaced with a new version generated
      	using gimpconfig-dump (although it's not perfect yet).
      e0ea1dbc
    • Dave Neary's avatar
      plug-ins/common/plugin-def.pl plug-ins/common/psd_save.c · 033778fe
      Dave Neary authored
      
      
      2003-01-12  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/plugin-def.pl
              * plug-ins/common/psd_save.c
              * plug-ins/common/Makefile.am
              * plug-ins/common/.cvsignore: Finally added PSD save support
      033778fe
    • Manish Singh's avatar
      plug-ins/common/plugin-def.pl plug-ins/common/Makefile.am Commented out · 6767e671
      Manish Singh authored
      2003-01-12  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/common/plugin-def.pl
              * plug-ins/common/Makefile.am
              * plug-ins/common/.cvsignore: Commented out the psd_save.c bit for
              now, looks like bolsh forgot to cvs add the file.
      6767e671
    • Jan Morén's avatar
      Updated Swedish translation. · 1c0d7e33
      Jan Morén authored
      2003-01-12  Jan Morén  <jan.moren@lucs.lu.se>
      
              * sv.po: Updated Swedish translation.
      1c0d7e33
    • Michael Natterer's avatar
      pass the GimpItemListView as "data" to the item_factory callbacks, not · f44500aa
      Michael Natterer authored
      2003-01-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpitemlistview.c: pass the GimpItemListView as
      	"data" to the item_factory callbacks, not just a "Gimp" pointer.
      
      	* app/display/gimpdisplayshell.c: use
      	gtk_window_add_accel_group(), not gimp_window_add_accel_group()
      	because we now attach the menubar's accel group, which has the
      	GimpDisplay as callback data.
      
      	* app/display/gimpdisplayshell-callbacks.c: pass the GimpDisplay
      	as "popup_data" to *_item_factory_popup_with_data().
      
      	* app/gui/channels-commands.c
      	* app/gui/drawable-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c: changed accordingly.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_window_[add|remove]_accel_group() and
      	gimp_widget_get_callback_context() because they were evil hacks
      	which are no longer needed now that all item_factories have proper
      	callback data (no just Gimp pointers).
      f44500aa
    • Dave Neary's avatar
      plug-ins/common/plugin-def.pl plug-ins/common/psd_save.c · 6098d871
      Dave Neary authored
      
      
      2003-01-12  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/plugin-def.pl
              * plug-ins/common/psd_save.c
              * plug-ins/common/Makefile.am
              * plug-ins/common/.cvsignore: Added PSD save support (alpha) to
              devel branch, from a plug-in written by Monignotes (?). This
              should be integrated into the main PSD plug-in before 1.4 - or
              should at least use the same PsdImage structure.
      6098d871
  7. 11 Jan, 2003 5 commits
    • Christian Rose's avatar
      Updated Swedish translation. · c44a93c2
      Christian Rose authored
      2003-01-11  Christian Rose  <menthos@menthos.com>
      
      	* sv.po: Updated Swedish translation.
      c44a93c2
    • Sven Neumann's avatar
      reverted my latest change since it broke the build in a fresh CVS · 1e8a49d2
      Sven Neumann authored
      2003-01-11  Sven Neumann  <sven@gimp.org>
      
      	    * app/config/Makefile.am: reverted my latest change since it broke
      	    the build in a fresh CVS checkout. Instead added make targets to
      	    create a man-page and a default gimprc that take care of building
      	    gimpconfig-dump.
      
      	    * app/config/gimpconfig-dump.c: started to work on the man-page
      	    dump functionality.
      1e8a49d2
    • Michael Natterer's avatar
      fixed my last ChangeLog entry. · eaa4eeba
      Michael Natterer authored
      eaa4eeba
    • Michael Natterer's avatar
      app/widgets/gimpdialogfactory.c removed GDK_HINT_USER_POS and · 28da5054
      Michael Natterer authored
      2003-01-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.c
      	* app/widgets/gimptoolbox.c: removed GDK_HINT_USER_POS and
      	GDK_HINT_USER_SIZE again because they caused problems with
      	some window managers Instead, set the window's size with
      	gtk_window_parse_geometry().
      28da5054
    • Sven Neumann's avatar
      always build gimpconfig-dump. · bf12a078
      Sven Neumann authored
      2003-01-11  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am: always build gimpconfig-dump.
      
      	* app/config/gimpconfig-params.[ch]: added an enum to specify the
      	type of path with GIMP_PARAM_SPEC_PATH.
      
      	* app/config/gimpconfig-dump.c: document the different types of
      	paths differently.
      
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpguiconfig.c
      	* app/config/gimppluginconfig.c: register the path types.
      
      	* etc/gimprc: generated a new system gimprc.
      
      	* plug-ins/common/tiff.c: added missing spaces in warning and
      	removed trailing newlines in strings passed to g_message().
      bf12a078
  8. 10 Jan, 2003 7 commits
    • Maurits Rijk's avatar
      Fixing dumb mistake in my last commit. · 72bcaa38
      Maurits Rijk authored
      72bcaa38
    • Maurits Rijk's avatar
      Fix for #95737 · 28ade0ed
      Maurits Rijk authored
      28ade0ed
    • Sven Neumann's avatar
      app/app_procs.c (app_init) delayed the activation of gimprc-autosave so we · ed312c95
      Sven Neumann authored
      2003-01-10  Sven Neumann  <sven@gimp.org>
      
      	* app/app_procs.c (app_init)
      	* app/core/gimp.c (gimp_set_config): delayed the activation of
      	gimprc-autosave so we don't write the monitor resolution obtained
      	from GDK back to the gimprc on each startup.
      
      	* app/gui/gui.c (gui_get_screen_resolution): round values to get
      	rid of rounding errors introduced earlier. Looks better in the
      	prefs dialog.
      
      	* app/display/gimpdisplayshell-scale.c (gimp_display_shell_scale):
      	merged fix for bug #94979 from stable branch. Go even further and
      	don't limit the zoom ratio between 1:16 and 16:1.
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): merged
      	fix for bug #103030 from stable branch.
      ed312c95
    • Maurits Rijk's avatar
      Fix for #96611 (again) · 891520c4
      Maurits Rijk authored
      891520c4
    • Michael Natterer's avatar
      app/widgets/gimpcolormapeditor.c app/widgets/gimpcontainereditor.[ch] pass · dd27eb1e
      Michael Natterer authored
      2003-01-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpdataeditor.c: pass the editor widget as
      	callback_data to GtkItemFactory callbacks, not a "Gimp" pointer.
      
      	* app/gui/buffers-commands.c
      	* app/gui/colormap-editor-commands.c
      	* app/gui/data-commands.c
      	* app/gui/documents-commands.c
      	* app/gui/gradient-editor-commands.c
      	* app/gui/gradients-commands.c
      	* app/gui/images-commands.c
      	* app/gui/palette-editor-commands.c
      	* app/gui/palettes-commands.c
      
      	* app/gui/patterns-commands.c: simply cast the passed "data"
      	pointer instead of calling gimp_widget_get_callback_context().
      	Don't #include "widgets/gimpwidgets-utils.h".
      dd27eb1e
    • 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
      	needed:
      
      	* 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
      	straightforward.
      
      	* 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
      	update.
      
      	Unrelated:
      
      	* 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.
      8d86ec25
    • Dom Lachowicz's avatar
      2a6d3edd