1. 29 Dec, 2002 6 commits
    • Sven Neumann's avatar
      oops, forgot to add these new files · ad693c3b
      Sven Neumann authored
      ad693c3b
    • Sven Neumann's avatar
      app/config/Makefile.am new files that define plug-in specific · 56e2d772
      Sven Neumann authored
      2002-12-30  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimppluginconfig.[ch]: new files that define plug-in
      	specific configuration.
      
      	* app/config/config-types.h
      	* app/config/gimprc-blurbs.h
      	* app/gimprc.[ch]: derive GimpRc from GimpPluginConfig.
      
      	* etc/gimprc: regenerated (gimp-config-dump --system-gimprc).
      56e2d772
    • 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.
      75353108
    • Sven Neumann's avatar
      check for app/core/gimp.c instead of etc/gimprc.in which no longer exists. · 849d6c0d
      Sven Neumann authored
      2002-12-29  Sven Neumann  <neo@wintermute>
      
              * configure.in: check for app/core/gimp.c instead of etc/gimprc.in
              which no longer exists.
      
              * app/gui/user-install-dialog.c: use the term Folder instead of
              Directory (fixes bug #102016).
      849d6c0d
    • Sven Neumann's avatar
      CVS sucks · f5c1b364
      Sven Neumann authored
      f5c1b364
    • 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
      	themselves.
      
      	* 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.
      023c7697
  2. 28 Dec, 2002 2 commits
  3. 26 Dec, 2002 5 commits
    • Tor Lillqvist's avatar
      Add the symbols used by libgimpwidgets. · 111f9c95
      Tor Lillqvist authored
      2002-12-26  Tor Lillqvist  <tml@iki.fi>
      
      	* app/gimp.sym: Add the symbols used by libgimpwidgets.
      111f9c95
    • Tor Lillqvist's avatar
      On Win32, create export file gimp.exp. (LDFLAGS): Add -mwindows. (LDADD): · 63f82075
      Tor Lillqvist authored
      2002-12-26  Tor Lillqvist  <tml@iki.fi>
      
      	* app/Makefile.am: On Win32, create export file gimp.exp.
      	(LDFLAGS): Add -mwindows.
      	(LDADD): Link with gimp.exp.
      
      	* app/gimp.sym: Remove all old entries (seemed to be obsolete).
      	Instead, add the ones linked to from libgimptool.
      63f82075
    • Tor Lillqvist's avatar
      On Win32, use similar code as in GIMP 1.2, i.e. don't run a script to do · 30d6dd14
      Tor Lillqvist authored
      2002-12-26  Tor Lillqvist  <tml@iki.fi>
      
      	* app/gui/user-install-dialog.c (user_install_run): On Win32, use
      	similar code as in GIMP 1.2, i.e. don't run a script to do the
      	mkdirs and copying, but do it ourselves. Markup the tree_items
      	elements accordingly to direct the action.
      30d6dd14
    • Tor Lillqvist's avatar
      Mark as out-of-date. · e952ed7b
      Tor Lillqvist authored
      e952ed7b
    • Tor Lillqvist's avatar
      Drop makefile.mingw{,.in}. · 5c547107
      Tor Lillqvist authored
      2002-12-26  Tor Lillqvist  <tml@iki.fi>
      
      	* app/Makefile.am (EXTRA_DIST): Drop makefile.mingw{,.in}.
      
      	* libgimp/gimp.c: Define LIBGIMP_COMPILATION.
      	(gimp_main) [Win32] Use g_ascii_strcasecmp().
      
      	* libgimp/gimp.def: Add _readchannel (used by libgimpui).
      
      	* libgimp/gimp.h: Fix minor typo in comment.
      
      	* libgimp/Makefile.am: Similar additions for Win32 as in the other
      	libgimp*/Makefile.am files: Use -no-undefined. Conditionally link
      	to ../lib*/*.la as needed. Use the .def file. Produce MS style
      	import library if possible. Install and uninstall import
      	libraries. Don't distribute makefile.mingw{,.in}.
      5c547107
  4. 20 Dec, 2002 4 commits
    • Sven Neumann's avatar
      app/config/Makefile.am removed ... · 4c1c236e
      Sven Neumann authored
      2002-12-20  Sven Neumann  <sven@gimp.org>
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-blurbs.h: removed ...
      
      	* app/config/gimprc-blurbs.h: ... and readded under this
      	name. Should have never been named with a gimpconfig prefix since
      	it's not part of the generic GimpConfig system.
      
      	* app/config/config-types.h
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpconfig-dump.c
      	* app/config/gimpcoreconfig.c
      	* app/config/gimpdisplayconfig.c
      	* app/config/gimpguiconfig.c: changed accordingly.
      4c1c236e
    • Michael Natterer's avatar
      use G_N_ELEMENTS(). · 12ad7194
      Michael Natterer authored
      2002-12-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf.c: use G_N_ELEMENTS().
      12ad7194
    • Sven Neumann's avatar
      Sven Neumann <sven@gimp.org> · 4b985f8e
      Sven Neumann authored
      	* app/config/gimpconfig.c (gimp_config_serialize): check the return
      	value of close().
      4b985f8e
    • Nathan Summers's avatar
      app/xcf/xcf-write.[ch] app/xcf/xcf-save.c ported the fix for bug #101340 · 8127ee74
      Nathan Summers authored
      2002-12-20  Nathan Summers  <rock@gimp.org>
      
              * app/xcf/xcf-write.[ch]
              * app/xcf/xcf-save.c
              * app/xcf/xcf.c: ported the fix for bug #101340 over from the stable
              branch.  Uses GError to report errors, unlike the stable version, which
              uses a pointer to gboolean.
      
              * app/xcf/xcf-seek.[ch]: check the return value of fseek and ftell for
              errors.  Return FALSE and set GError if an error is detected.
      
              * app/xcf/xcf-load.c: since the xcf-seek functions use GError now,
              added a NULL for the error parameter.  Added basic error checking
              on the return value of the xcf-seek functions.  In the future,
              changing xcf-load.c to use GError more completely should be
              considered.
      
              * POTFILES.in: mark the error messages added for translation
      8127ee74
  5. 19 Dec, 2002 1 commit
    • Michael Natterer's avatar
      added utility functions gimp_get_mod_name_[shift|control|alt]() and · 4328fa94
      Michael Natterer authored
      2002-12-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.[ch]: added utility functions
      	gimp_get_mod_name_[shift|control|alt]() and gimp_get_mod_separator()
      	which get the translated strings for "Shift", "Ctrl", "Alt" and "+"
      	from GtkAccelLabelClass to force consistency between menu
      	accelerators and other modifiers displayed in the GUI.
      	Made the format string to display the modifier ("<%s>")
      	translatable separately.
      
      	* app/gui/file-open-dialog.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/transform_options.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemlistview.c
      	* app/widgets/gimpvectorslistview.c: use the new functions instead
      	of hardcoding the modifier names over and over again.
      
      	* app/tools/transform_options.c: made a scale_entry out of the
      	grid density spinbutton.
      4328fa94
  6. 18 Dec, 2002 3 commits
    • Michael Natterer's avatar
      app/tools/gimpcurvestool.c replaced lots of "gpointer data" parameters of · 94cf84b2
      Michael Natterer authored
      2002-12-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c: replaced lots of "gpointer data"
      	parameters of local callbacks by GimpCurvesTool* and
      	GimpLevelsTool* pointers. Makes the code shorter and more
      	readable. Some random cleanup.
      
      	* app/tools/gimphistogramtool.c: fixed type of "parent_class"
      	pointer.
      94cf84b2
    • Michael Natterer's avatar
      fixed ascii-art to match current widget hierarchy. · 1e73e219
      Michael Natterer authored
      2002-12-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): fixed
      	ascii-art to match current widget hierarchy.
      
      	* app/display/gimpdisplayshell-handlers.c: fixed typos so we
      	actually connect to notify::monitor-[xy]resolution. Expose and
      	flush the display in the handler so the resolution change becomes
      	visible.
      1e73e219
    • 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
              file
      
              * po/POTFILES.in: add gimpenvirontable.c
      2bb5acc2
  7. 17 Dec, 2002 3 commits
    • Sven Neumann's avatar
      oops · b69a3a11
      Sven Neumann authored
      b69a3a11
    • Sven Neumann's avatar
      merged fix for #71409 from stable branch. · 1c2a8015
      Sven Neumann authored
      2002-12-17  Sven Neumann  <sven@gimp.org>
      
      	* app/main.c: merged fix for #71409 from stable branch.
      
      	* plug-ins/common/jpeg.c: merged fix for #75398 from stable branch.
      1c2a8015
    • Michael Natterer's avatar
      app/tools/gimptransformtool.c replaced the totally unclear (to the user) · 6af7df62
      Michael Natterer authored
      2002-12-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c
      	* app/tools/transform_options.[ch]: replaced the totally unclear
      	(to the user) way we used to calculate the number of grid lines
      	from the value entered in the "Density" spinbutton by a system
      	where the user has the choice between the number of grid lines to
      	display and the spacing between the displayed grid lines. Replaced
      	the "Show Grid" toggle by an option menu to choose the grid type
      	from. (idea from drc on #gimp).
      6af7df62
  8. 15 Dec, 2002 1 commit
  9. 14 Dec, 2002 7 commits
    • Michael Natterer's avatar
      fixed a comment. · c7afb9fb
      Michael Natterer authored
      2002-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-ins.c (plug_ins_proc_def_add): fixed a comment.
      c7afb9fb
    • Manish Singh's avatar
      size should be from GParamSpecULong, not GParamSpecUInt. · 409cd125
      Manish Singh authored
      2002-12-14  Manish Singh  <yosh@gimp.org>
      
              * app/config/gimpconfig-params.c (gimp_param_memsize_get_type):
              size should be from GParamSpecULong, not GParamSpecUInt.
      409cd125
    • Michael Natterer's avatar
      renamed paramater "update_popup" to "popup_only" because it's less · 4c39ac33
      Michael Natterer authored
      2002-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]
      	(gimp_display_shell_set_menu_sensitivity): renamed paramater
      	"update_popup" to "popup_only" because it's less confusing. Fixed
      	the function to update the popup correctly for shell = NULL.
      4c39ac33
    • Michael Natterer's avatar
      use gdisp->gimage->gimp instead of the_gimp. · 1d1be9f0
      Michael Natterer authored
      2002-12-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/plug-in-commands.c (plug_in_repeat_cmd_callback):
      	use gdisp->gimage->gimp instead of the_gimp.
      
      	* app/tools/gimpimagemaptool.c: pass update_popup == FALSE to
      	gimp_display_shell_set_menu_sensitivity().
      1d1be9f0
    • Sven Neumann's avatar
      data is not a Gimp pointer if this function is called from an image · b9b40c45
      Sven Neumann authored
      2002-12-14  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/plug-in-commands.c (plug_in_repeat_cmd_callback): data
      	is not a Gimp pointer if this function is called from an image
      	menubar. Use the_gimp instead of crashing.
      b9b40c45
    • Sven Neumann's avatar
      made it compile after Mitch's changes. · 78fb9db8
      Sven Neumann authored
      2002-12-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpimagemaptool.c: made it compile after Mitch's
      	changes.
      78fb9db8
    • 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
      	here.
      
      	* 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"
      	twice.
      f03b6b6d
  10. 13 Dec, 2002 3 commits
  11. 12 Dec, 2002 1 commit
  12. 10 Dec, 2002 2 commits
    • Michael Natterer's avatar
      The unbelievable happened: a menu bar per display (optionally) · b1ebd9cd
      Michael Natterer authored
      2002-12-10  Michael Natterer  <mitch@gimp.org>
      
      	The unbelievable happened: a menu bar per display (optionally)
      
      	* app/widgets/gimpitemfactory.[ch]: Added the possibility to have
      	more than one item factory per <Prefix>. Added
      	gimp_item_factories_set_foobar() variants of all functions which
      	set menu item properties (label, sensitive, ...). Removed
      	the #ifndef ENABLE_NLS code since that's no longer possible.
      
      	* app/widgets/gimptoolbox.c: made it robust againt the <Image>
      	factory not existing at the time of toolbox creation.
      
      	* app/config/gimpconfig-blurbs.h
      	* app/config/gimpdisplayconfig.[ch]: added boolean
      	"menu_bar_per_display" property.
      
      	* app/gui/preferences-dialog.c: added a toggle for the new option.
      
      	* app/gui/menus.[ch]: added menus_get_new_image_factory() as
      	temporary solution. Will add a GimpMenuFactory which creates the
      	item factories soon.
      
      	* app/display/gimpdisplayshell.c: add the menu bar if requested.
      	Changed widget packing slightly for the menu bar case.
      
      	* app/display/gimpdisplayshell-callbacks.c: changed accordingly.
      	Currently there is no right-click popup menu when we have a menu
      	bar. This will change soon.
      
      	* app/gui/file-dialog-utils.c
      	* app/gui/gui.c: use gimp_item_factories_set_foo().
      
      	* app/gui/channels-commands.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/plug-in-commands.c
      	* app/gui/select-commands.c
      	* app/gui/tools-commands.c
      	* app/gui/vectors-commands.c
      	* app/gui/view-commands.c: per-display item factories pass the
      	GimpDisplay as user_data to callbacks, not a Gimp. Changed all
      	return_if_no_foo() macros to handle both cases.
      
      	Cleaned up the plug-in menu stuff:
      
      	* app/plug-in/plug-in-types.h: removed PlugInMenuEntry type.
      
      	* app/plug-in/plug-ins.[ch]: added plug_ins_proc_def_add() as
      	counterpart to plug_ins_proc_def_remove(). Added
      	plug_ins_locale_domain() as counterpart to plug_ins_help_path().
      	Remember the locale domains just as the help paths. Changed
      	plug-in initialization so that their menus can be created multiple
      	times.
      
      	* app/plug-in/plug-in.[ch]: use plug_ins_proc_def_add() instead of
      	doing it manually.
      
      	* app/gui/plug-in-menus.[ch]: added plug_in_menus_init() which
      	just registers the locale domains. Changed plug_in_make_menu() to
      	take a list of proc_defs, not plug_ins_defs so it can be used
      	after plug-in query.
      b1ebd9cd
    • Michael Natterer's avatar
      fixed typo, use "gimp->no_interface" instead of simply "no_interface" in · cd858c5a
      Michael Natterer authored
      2002-12-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c: fixed typo, use "gimp->no_interface" instead of
      	simply "no_interface" in the "exit" handler.
      cd858c5a
  13. 06 Dec, 2002 1 commit
    • Sven Neumann's avatar
      no need to include app_procs.h here. · 6604398f
      Sven Neumann authored
      2002-12-06  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintcore.c: no need to include app_procs.h here.
      
      	* app/display/gimpdisplay-foreach.c (gimp_displays_dirty)
      	(gdisplays_check_valid): don't use the global the_gimp. Removed
      	inclusion of app_procs.h.
      6604398f
  14. 05 Dec, 2002 1 commit
    • 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
      	above.
      
      	* 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.
      b2c3f018