Commit Graph

6915 Commits

Author SHA1 Message Date
Sven Neumann 93799415c8 fixed error code and improved error messages.
2002-05-27  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig.c (gimp_config_serialize): fixed error code
	and improved error messages.
2002-05-27 21:50:50 +00:00
Maurits Rijk 799c772fe1 Added lost entry from mitch + description for changed libgimpwidgets/gimpwidgets.c 2002-05-27 20:28:38 +00:00
Maurits Rijk ff06323109 Enable mnemonics (#80804) 2002-05-27 17:25:30 +00:00
Michael Natterer 74195d1f3f set the spinbutton which is attached right of the label as mnemonic_widget
2002-05-27  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimpsizeentry.c (gimp_size_entry_attach_label):
	set the spinbutton which is attached right of the label as
	mnemonic_widget for the label.
2002-05-27 16:56:28 +00:00
Sven Neumann 09e7d85d68 updated.
2002-05-27  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: updated.
2002-05-27 14:21:43 +00:00
Michael Natterer dbc8aeb49c added "gint nest_level" to the deserialization functions, so nested calls
2002-05-27  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig.[ch]: added "gint nest_level" to the
	deserialization functions, so nested calls to deserialize()
	don't error on the trailing ')'. Made the scanner config parse
	one-character identifiers and allow G_CSET_A_2_Z for all
	identifiers.
	Added gimp_config_deserialize_return() because returning the
	correct return value from a deserialize() function is not
	trivial any more with nested calls.

	* app/config/gimpconfig-deserialize.[ch]
	* app/config/gimprc.c
	* app/core/gimpdocumentlist.c
	* app/core/gimpparasitelist.c: use the new return value utility
	function and made the main parsing loops simpler.

	* app/core/gimpunits.c: made the main parsing loops consistent
	with the stuff that uses GimpConfig.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: call the
	(de)serialize_property() functions only if the property's class
	implements the method itself (does *not* inherit it from one of
	it's parents).

	* app/core/gimpcontainer.c: implemented deserialization of
	containers. For each child entry encountered in the input, check
	if it's already contained in the container and create it if not.
	If a "gimp" pointer is passed as user_data pass it as construct
	property to g_object_new() when creating the object.

	* app/core/gimpcontext.c: changed deserialization of brush,
	pattern etc. to honor "no_data".

	* app/widgets/gimpdeviceinfo.c: added a "gimp" construct_only
	property which overrides GimpContext's "gimp" property. Moved all
	initialisation code from gimp_device_info_new() to
	gimp_device_info_set_property(PROP_GIMP) so it is properly
	performed if the object is created by GimpContainer's
	deserialize() implementation.

	* app/widgets/gimpdevices.c: made gimp_devices_restore_test() work.
2002-05-27 14:04:21 +00:00
Sven Neumann 9ccebbd48e restructured, added lots of comments. Reenabled build of gimp-remote.
2002-05-27  Sven Neumann  <sven@gimp.org>

	* configure.in: restructured, added lots of comments. Reenabled
	build of gimp-remote.

	* app/main.c: output name and version with usage information.

	* docs/Makefile.am: install the gimp-remote-1.3 man-page.

	* tools/Makefile.am: link gimp-remote-1.3 to gimp-remote if
	enable-default-binary was choosen at configure time.

	* tools/gimp-remote.c: make it start gimp-1.3 if called with the
	--new command-line option. Still the same bad hack as in 1.2 :-(
2002-05-27 13:59:27 +00:00
Michael Natterer c8a87aae03 app/widgets/gimpchannellistview.c kindof fixed the channel dialog's
2002-05-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpchannellistview.c
	* app/widgets/gimpcomponentlistitem.c: kindof fixed the channel
	dialog's component items. Had to disable keyboard navigation
	because GtkList is horribly broken with GTK_SELECTION_MULTIPLE.
	Left in lots of #if 0'ed stuff because this is not the final
	solution...
2002-05-27 12:15:29 +00:00
Sven Neumann 9ba70e461f "%lld" is not a portable format string, cast to gint64 and use
2002-05-27  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimagefile.c: "%lld" is not a portable format string,
	cast to gint64 and use G_GINT64_FORMAT instead.
2002-05-27 11:45:50 +00:00
Michael Natterer d6ce8fce69 use "%lld" when printing or parsing file sizes because AC_SYS_LARGEFILE
2002-05-27  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpimagefile.c: use "%lld" when printing or parsing
	file sizes because AC_SYS_LARGEFILE makes off_t a long long.
2002-05-27 01:31:48 +00:00
Sven Neumann 159b6ca115 even better configure.in (crossing fingers...) 2002-05-27 00:15:54 +00:00
Sven Neumann 09bafc82b2 HACKING autogen.sh added AC_SYS_LARGEFILE as a first prerequisite to
2002-05-27  Sven Neumann  <sven@gimp.org>

	* HACKING
	* autogen.sh
	* configure.in: added AC_SYS_LARGEFILE as a first prerequisite to
	handle bug #74478 (cannot handle swap size of 2GB). This requires
	autoconf-2.52.

	* acconfig.h: removed since it is now obsolete.
2002-05-26 23:47:10 +00:00
Kwok-Koon Cheung 233a7ce71b Updated traditional Chinese translation 2002-05-26 20:59:30 +00:00
Sven Neumann 3db799df2f made Forward button work.
2002-05-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/helpbrowser.c: made Forward button work.
2002-05-26 18:31:57 +00:00
Chyla Zbigniew f3adf378ab Updated Polish translation by GNOME PL Team <translators@gnome.pl> 2002-05-26 14:05:05 +00:00
Maurits Rijk 3c5cefc8e9 More enabling of mnemonics. 2002-05-25 18:10:04 +00:00
Maurits Rijk 8a87bde69d Fix for #82498 and adds mnemonics to dialog. 2002-05-25 13:25:39 +00:00
Sven Neumann 8637e0954c updated.
2002-05-25  Sven Neumann  <sven@gimp.org>

	* NEWS: updated.

	* plug-ins/helpbrowser/helpbrowser.c
	* plug-ins/helpbrowser/queue.[ch]: simplified user interface and
	code. Still work in progress...
2002-05-25 00:58:29 +00:00
Sven Neumann 3428ad9dfb a first start at cleaning up the Script-Fu user interface.
2002-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: a first start at
	cleaning up the Script-Fu user interface.
2002-05-24 19:44:37 +00:00
Chyla Zbigniew e7eac0a8ed Updated Polish translation by GNOME PL Team <translators@gnome.pl> 2002-05-24 19:00:24 +00:00
Michael Natterer 40caeab174 added deserialization of GValueArrays (untested). Added
2002-05-24  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-deserialize.c: added deserialization of
	GValueArrays (untested). Added gimp_config_deserialize_value()
	which is factored out from gimp_config_deserialize_property().
2002-05-24 17:42:21 +00:00
Sven Neumann e9d0daff72 plug-ins/FractalExplorer/Dialogs.c plug-ins/common/CML_explorer.c
2002-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/FractalExplorer/Dialogs.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/convmatrix.c
	* plug-ins/common/curve_bend.c
	* plug-ins/common/film.c
	* plug-ins/common/iwarp.c
	* plug-ins/common/sample_colorize.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/common/tileit.c
	* plug-ins/fp/fp_gtk.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/preview.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/sel2path/sel2path.c: make use of stock labels.
2002-05-24 17:19:50 +00:00
Maurits Rijk 72607e094f Fixes #82849 (selection is ignored in Smooth Palette filter) 2002-05-24 14:50:08 +00:00
Sven Neumann b5d2dd0867 write newline after serializing the properties.
2002-05-24  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc.c (gimp_rc_serialize): write newline after
	serializing the properties.

	* app/config/gimpconfig.c (gimp_config_string_indent): tiny
	optimization.
2002-05-24 13:52:07 +00:00
Maurits Rijk f08744ed95 Fixes #82494 and adds mnemonics 2002-05-24 13:20:28 +00:00
Michael Natterer 708059e463 fixed assertion which did not check for indent_level >= 0 but > 0.
2002-05-24  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig.c (gimp_config_string_indent): fixed assertion
	which did not check for indent_level >= 0 but > 0.

	* app/config/gimpconfig-serialize.c (gimp_config_serialize_value):
	serialize floats with g_ascii_formatd() to be locale independed,
	added serialization of GValueArrays.

	* app/widgets/gimpdeviceinfo.c: added properties for "mode",
	"axes" and "keys". Their set_property() implementations are
	untested.
2002-05-24 13:07:12 +00:00
Maurits Rijk 2d93944ada Fixes #82480 2002-05-24 12:59:41 +00:00
Maurits Rijk 7a9366ddc9 Fixes #82499 (small typo) and adds mnemonics. 2002-05-24 12:38:19 +00:00
Maurits Rijk df0b884452 Fixes #82499 (small typo) and adds mnemonics. 2002-05-24 12:31:01 +00:00
Sven Neumann 14066a6e8d app/core/cpercep.[ch] app/core/gimpimage-convert.c removed C++ style
2002-05-24  Sven Neumann  <sven@gimp.org>

	* app/core/cpercep.[ch]
	* app/core/gimpimage-convert.c
	* app/paint-funcs/paint-funcs.c: removed C++ style comments and
	compiler warnings.
2002-05-24 10:48:08 +00:00
Michael Natterer b10ade1a35 app/config/gimpconfig.[ch] added "gint indent_level" to all serialization
2002-05-24  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig.[ch]
	* app/config/gimpconfig-serialize.[ch]: added "gint indent_level"
	to all serialization functions. Added gimp_config_string_indent()
	which indents a GString.

	* app/config/gimprc.c
	* app/core/gimpdocumentlist.c
	* app/core/gimpparasitelist.c: changed accordingly.

	* app/core/gimpcontext.c: don't crash when serializing NULL object
	properties.

	* app/config/gimpscanner.[ch]: added gimp_scanner_parse_identifier().

	* app/core/gimpcontainer.c: implement GimpConfigInterface.
	Container serialization works, deserialization is not implemented yet.

	* app/widgets/gimpdevices.[ch]: made
	GimpDeviceManager->device_info_list a GimpList, not GList, added
	testing functions for (de)serializing it.

	* app/gui/menus.c
	* app/gui/test-commands.[ch]: call the new test functions from
	the <Toolbox>/File/Debug menu.
2002-05-24 02:53:20 +00:00
Michael Natterer 3a7654ec7c copied some code from gtk+/gtk/gtkmenubar.c:window_key_press_handler()
2002-05-24  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c: copied some code from
	gtk+/gtk/gtkmenubar.c:window_key_press_handler() which pops up the
	<Image> menu on F10 (or whatever is configured in GtkSettings).
2002-05-24 02:20:20 +00:00
Sven Neumann e0294ab399 check for GIMP_PARAM_SERIALIZE.
2002-05-22  Sven Neumann  <sven@gimp.org>

	* app/config/gimprc.c (gimp_rc_query): check for GIMP_PARAM_SERIALIZE.
2002-05-22 13:45:35 +00:00
Michael Natterer 42f8ae15e4 added virtual interface methods serialize_property() and
2002-05-22  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig.[ch]: added virtual interface methods
	serialize_property() and deserialize_property() which can be used
	to implement (de)serialization of special properties or to
	override the default implementation.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: for each property, check if
	the class which added it implements the virtual functions and call
	them before trying the default implementations.

	* app/config/gimpconfig-params.h: added new macro
	GIMP_CONFIG_INSTALL_PROP_OBJECT().

	* app/core/gimpcontext.c: declare the "tool", "brush", "pattern",
	"gradient" and "palette" properties as serializable and added
	implementations of (de)serialize_property().
2002-05-22 13:19:19 +00:00
Sven Neumann 3553cf90bf need to link test-config against libgimpcolor now.
2002-05-21  Sven Neumann  <sven@gimp.org>

	* app/config/Makefile.am: need to link test-config against
	libgimpcolor now.

	* app/config/gimpconfig.c (gimp_config_serialize): write newlines
	after header and before footer.

	* app/config/test-config.c
	* app/config/gimprc.c
	* app/core/gimp-documents.c
	* app/core/gimp-parasites.c
	* app/gui/test-commands.c: removed the newlines here.

	* app/config/gimpconfig-params.h: define GIMP_PARAM_SERIALZE flag
	which can be used to mark an object property as serializable.
	Make the GIMP_CONFIG_INSTALL_PROP_* macros set it.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: check the GIMP_PARAM_SERIALIZE
	flag.

	* app/config/gimpconfig-params.c (gimp_param_color_set_default):
	fixed.

	* app/core/gimpcontext.c: install serializable properties using the
	GIMP_CONFIG_INSTALL_PROP_* macros.
2002-05-21 17:33:04 +00:00
Michael Natterer 292ec087eb added GIMP_TYPE_COLOR as boxed type encapsulating GimpRGB.
2002-05-21  Michael Natterer  <mitch@gimp.org>

	* app/config/gimpconfig-types.[ch]: added GIMP_TYPE_COLOR as boxed
	type encapsulating GimpRGB.

	* app/config/gimpconfig-params.[ch]: added GimpParamSpecColor
	which is derived from GParamSpecBoxed and adds a default value.

	* app/config/gimpconfig-deserialize.c
	* app/config/gimpconfig-serialize.c: added generic
	(de)serialization of the new property type.

	* app/core/gimpcontext.c: implement the config interface, changed
	signal parameters and property types to use the new
	GIMP_TYPE_COLOR.

	* app/core/gimpmarshal.list: added a VOID__BOXED marshaller.

	* app/gui/menus.c
	* app/gui/test-commands.[ch]: some test code which (de)serializes
	the user context.
2002-05-21 15:01:57 +00:00
Sven Neumann 16c289ea95 added a GimpImageType parameter to specify the desired drawable type. This
2002-05-21  Sven Neumann  <sven@gimp.org>

	* app/core/gimplayer.[ch] (gimp_layer_new_from_tiles): added a
	GimpImageType parameter to specify the desired drawable type. This
	is needed when pasting into layer masks.

	* app/core/gimpdrawable-transform.c
	* app/core/gimpedit.c
	* app/core/gimpimage-mask.c: changed accordingly.
2002-05-21 11:29:20 +00:00
Michael Natterer fd21dbfb18 some more minor cleanup.
2002-05-21  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in.c: some more minor cleanup.
2002-05-21 10:58:50 +00:00
Michael Natterer 500dca98b8 app/gimprc.c write/parse the "wheel" axis properly when writing/parsing
2002-05-21  Michael Natterer  <mitch@gimp.org>

	* app/gimprc.c
	* app/widgets/gimpdeviceinfo.c: write/parse the "wheel" axis
	properly when writing/parsing devicerc.

	* app/widgets/gimpdevices.c: no need to #define something twice.
2002-05-21 10:16:36 +00:00
Sven Neumann 17e0621305 added pl.po. Removed gimp_tips.pl.txt.
2002-05-21  Sven Neumann  <sven@gimp.org>

	* Makefile.am (tips_POFILES): added pl.po. Removed gimp_tips.pl.txt.
2002-05-21 09:02:11 +00:00
Zbigniew Chyla 7cb48dff29 Added Polish translation by GNOME PL Team <translators@gnome.pl>.
2002-05-20  Zbigniew Chyla  <cyba@gnome.pl>

	* pl.po: Added Polish translation by
	GNOME PL Team <translators@gnome.pl>.
2002-05-20 14:29:43 +00:00
Sven Neumann 90261369a8 somewhat cleaner implementation.
2002-05-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-text-console.c: somewhat cleaner
	implementation.
2002-05-18 00:47:13 +00:00
Sven Neumann 7d791144df documented more configure options.
2002-05-17  Sven Neumann  <sven@gimp.org>

	* INSTALL: documented more configure options.
2002-05-17 12:20:10 +00:00
Michael Natterer dba356d815 libgimpbase/gimpprotocol.[ch] pass "gpointer user_data" to all functions,
2002-05-16  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/gimpprotocol.[ch]
	* libgimpbase/gimpwire.[ch]: pass "gpointer user_data" to all
	functions, which in gets turn passed to the registered reader,
	writer, and flusher funcs.

	* libgimp/gimp.c
	* libgimp/gimptile.c: pass NULL as user_data. We have only one
	pipe on the plug-in side.

	* app/plug-in/plug-in.c: pass the PlugIn as user_data. As a
	consequence, got rid of more global variables. The global
	"current_plug_in" and the plug_in_push()/pop() madness are still
	there. Will reeplace them by some less ugly hack later...

2002-05-16  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/tmpl/gimpprotocol.sgml
	* libgimpbase/tmpl/gimpwire.sgml: regenerated after API change.
2002-05-16 17:41:38 +00:00
Sven Neumann 9af4c5d6d2 don't allow to close the splash screen. Fixes bug #81962.
2002-05-16  Sven Neumann  <sven@gimp.org>

	* app/gui/splash.c: don't allow to close the splash screen. Fixes
	bug #81962.

	* plug-ins/gimpressionist/gimpressionist.c: changed button order.
	As mentioned in bug #81963 the UI of this plug-in needs some more
	work.

	* plug-ins/gimpressionist/brush.c
	* plug-ins/gimpressionist/paper.c
	* plug-ins/gimpressionist/presets.c: fixed handling of scrolled
	windows.
2002-05-16 14:13:20 +00:00
Michael Natterer d6cffe5700 Pass PlugIn, not Gimp pointers to all message handler functions so they
2002-05-16  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in.c: Pass PlugIn, not Gimp pointers to all
	message handler functions so they have a proper context to operate
	on. Use the PlugIn pointer passed instead of "current_plug_in".
	Removed global variables "current_readchannel" and
	"current_writechannel" because it is now always possible to use
	plug_in->my_read and plug_in->my_write.
2002-05-16 11:45:30 +00:00
Michael Natterer 8d37831a94 <shift>+click toggles the active layer's "linked" property now.
2002-05-15  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpmovetool.c: <shift>+click toggles the active
	layer's "linked" property now.

	* themes/Default/images/stock-tool-options-16.png: new icon.

	* themes/Default/images/Makefile.am
	* themes/Default/imagerc
	* libgimpwidgets/gimpstock.[ch]: added it to the stock system.

	* app/gui/menus.c: use it for the tool_options dialog's menu
	entries.
2002-05-15 19:15:23 +00:00
Simon Budig 4904ca124e tiny fix, there was an ancient non working call to gimp_layer_add_alpha
2002-05-15  Simon Budig  <simon@gimp.org>

        * plug-ins/pagecurl/pagecurl.c: tiny fix, there was an
        ancient non working call to gimp_layer_add_alpha still
        hanging around...
2002-05-15 18:46:55 +00:00
Simon Budig e82fba4414 Made the pagecurl plugin automatically add an alpha channel. Fixes #81611.
2002-05-15  Simon Budig  <simon@gimp.org>

        * plug-ins/pagecurl/pagecurl.c: Made the pagecurl plugin
        automatically add an alpha channel. Fixes #81611.
2002-05-15 18:25:59 +00:00
Sven Neumann 6c9134609b fixed documentation.
2002-05-15  Sven Neumann  <sven@gimp.org>

	* app/config/gimpconfig.c: fixed documentation.

	* app/tools/gimppenciltool.c
	* app/tools/gimpsheartool.c: assign shortcuts that don't collide with
	other tools.
2002-05-15 18:23:17 +00:00