Commit graph

2160 commits

Author SHA1 Message Date
Michael Natterer 278a69918d bind the "gimp-libgimp" textdomain to get the libgimp widget translations.
2000-01-28  Michael Natterer  <mitch@gimp.org>

	* app/main.c: bind the "gimp-libgimp" textdomain to get the
	libgimp widget translations. Did some code cleanup.

	* libgimp/stdplugins-intl.h: bind "gimp-libgimp".

	* libgimp/gimpintl.h: copyright header.

	* libgimp/libgimp-intl.h: there is no dgettext_noop() function
	(typo/braino).

	* libgimp/gimpwidgets.[ch]: one more table attach helper
	function. Should probably find a general way for the two
	functions.

	* plug-ins/common/CML_explorer.c
	* plug-ins/common/align_layers.c
	* plug-ins/common/scatter_hsv.c
	* plug-ins/common/threshold_alpha.c: removed the gtkW_* wrapper
	functions. Badly hacked CML_explorer (The optionmenu creation is a
	bit more ugly than before but at least consistent with the other
	files using the libgimp optionmenu constructor).
2000-01-27 19:26:00 +00:00
Asbjørn Pettersen b6c9232fbe os/2 patch 2000-01-27 18:44:35 +00:00
Sven Neumann 8cbd73b54c bind gimp-libgimp domain
--Sven
2000-01-27 11:55:22 +00:00
Manish Singh a73c70c8a3 configure.in po-plug-ins moved libgimp strings into their own catalog.
* configure.in
* po-plug-ins
* po-libgimp: moved libgimp strings into their own catalog.
Mitch/Sven, could you take care of the domain rebinding?

* Makefile.am: make a gimp-config symlink to gimptool

-Yosh
2000-01-27 10:47:01 +00:00
Marc Lehmann 145fe40e7a *** empty log message *** 2000-01-27 04:02:15 +00:00
Marc Lehmann 0de089bf21 *** empty log message *** 2000-01-27 02:23:02 +00:00
Michael Natterer 929045dff9 libgimp/Makefile.am new file to be included by libgimp files only.
2000-01-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/Makefile.am
	* libgimp/libgimp-intl.h: new file to be included by libgimp files
	only. Re-defines _() and gettext() as dgettext() and N_() as
	dgettext_noop().
	This way the translations of the various widgets which are used in
	both the app and plugins are searched in the correct catalog.

	* libgimp/gimpcolorbutton.c
	* libgimp/gimpexport.c
	* libgimp/gimpfileselection.c
	* libgimp/gimpunit.c
	* libgimp/gimpunitmenu.c
	* libgimp/gimpwidgets.c: #include "libgimp-intl.h"
2000-01-27 01:54:52 +00:00
Michael Natterer 38c66a651c added one more option menu constructor and made the namespace more
2000-01-28  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpwidgets.[ch]: added one more option menu constructor
	and made the namespace more consistent, minor fixes.

	* libgimp/gimpdialog.c
	* libgimp/gimpunitmenu.c: minor fixes.

	* app/preferences_dialog.c
	* plug-ins/borderaverage/borderaverage.c
	* plug-ins/common/gif.c
	* plug-ins/common/randomize.c: changed according to the above
	namespace cleanups.
2000-01-27 01:22:27 +00:00
Sven Neumann ea27590213 typos and german translation
--Sven
2000-01-27 01:00:09 +00:00
Tor Lillqvist 1af6e3110a No need to use an #ifdef for G_OS_WIN32 as the whole function is already
2000-01-27  Tor Lillqvist  <tml@iki.fi>

* app/main.c (on_signal): No need to use an #ifdef for G_OS_WIN32
as the whole function is already bypassed on Win32.

* libgimp/gimp.def
* libgimp/gimpui.def: Updates.

* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Goodbye to the megawidget library.

* plug-ins/common/papertile.c: MAIN() must be after PLUG_IN_INFO
definition.
2000-01-27 00:26:22 +00:00
Michael Natterer 834e31a7ec a little ui eye candy...
2000-01-27  Michael Natterer  <mitch@gimp.org>

	* plug-ins/pagecurl/pagecurl.c: a little ui eye candy...
2000-01-27 00:16:52 +00:00
Sven Neumann d9f41c33fd don't connect to the unit_changed signal
--Sven
2000-01-26 23:09:15 +00:00
Michael Natterer 65dd45da78 changed the ui to use the libgimp widget constructors, put the channel
2000-01-27  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/newsprint.c: changed the ui to use the libgimp
	widget constructors, put the channel settings into a notebook, did
	some indentation.
2000-01-26 22:38:31 +00:00
Sven Neumann 6cba1d70ea when loading an image, check that gimage_id != -1
--Sven
2000-01-26 17:40:03 +00:00
Sven Neumann 6895d48413 eeek, mitch introduced a typo with bad consequences
--Sven
2000-01-26 17:33:25 +00:00
SHIRASAKI Yasuhiro 9659b77317 i18n fix and message table update. 2000-01-26 17:17:58 +00:00
Shirasaki Yasuhiro 5bdef4f453 added dummy menus for menu path translation.
2000-01-27  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>

        * plug-ins/gap/gap_decode_mpeg_main.c: added dummy menus
        for menu path translation.

        * po-plug-ins/POTFILES.in: added missing
        plug-ins/gap/gap_frontends_main.c.

-- yasuhiro
2000-01-26 16:21:32 +00:00
Sven Neumann 5112feded7 updated print plug-in
--Sven
2000-01-26 16:00:48 +00:00
Sven Neumann 8dc2a341cb use gimp_color_buttons
--Sven
2000-01-26 14:14:54 +00:00
Sven Neumann 3bf7c3440f applied patches from Wolfgang: clean up PDB_wrappers
--Sven
2000-01-26 12:30:38 +00:00
Michael Natterer 84cf11fd7c forgot to correctly set the tile_cache_size. Only apply show_tool_tips and
2000-01-26  Michael Natterer  <mitch@gimp.org>

	* app/preferences_dialog.c: forgot to correctly set the
	tile_cache_size. Only apply show_tool_tips and tile_cache_size if
	the prefs settings are not currupt.
2000-01-26 03:22:13 +00:00
Michael Natterer 438ff5879a made the handling of the values which can't be changed on the fly
2000-01-26  Michael Natterer  <mitch@gimp.org>

	* app/preferences_dialog.c: made the handling of the values which
	can't be changed on the fly consistent:

	- Some of the widget callbacks were connected to gimprc variables
	  instead of pref dialog's "edit_" variables.
	- Correctly assign value, edit_value, old_value and save_value for
	  all of them.
	- Separated them from the other values in all functions.
	- Reduced the endless "if" madness in some callbacks.
2000-01-26 03:22:13 +00:00
Michael Natterer 45a04909bd use the int adjustment callback from libgimp, simplified the confirm
2000-01-26  Michael Natterer  <mitch@gimp.org>

	* app/preferences_dialog.c: use the int adjustment callback from
	libgimp, simplified the confirm dialog signal callbacks.
2000-01-26 03:22:13 +00:00
Sven Neumann ccf1a05c66 s/malloc/g_malloc/ s/free/g_free/
s/malloc/g_malloc/
s/free/g_free/


--Sven
2000-01-26 03:22:13 +00:00
Marc Lehmann d271e35797 *** empty log message *** 2000-01-26 03:22:13 +00:00
Michael Natterer 8098581577 block the sizeentry's signals while updating is's fields after a unit
2000-01-26  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpsizeentry.[ch]: block the sizeentry's signals while
	updating is's fields after a unit change and emit the
	"value_changed" signal manually afterwards. This avoids multiple
	"value_changed" signals which may cause callbacks to change the
	sizeentry in the middle of a unit update.

	* plug-ins/commion/spread.c: no need to connect to the sizeentry's
	"unit_changed" signal.
2000-01-26 00:39:40 +00:00
Sven Neumann 38ed843bb7 plugin ui changes
--Sven
2000-01-25 23:11:20 +00:00
Michael Natterer 4923047146 removed BOUNDS, MINIMUM and MAXIMUM. No need to include both <glib.h> and
2000-01-25  Michael Natterer  <mitch@gimp.org>

	* app/appenv.h: removed BOUNDS, MINIMUM and MAXIMUM. No need to
	include both <glib.h> and <gtk/gtk.h>.

	* app/*
	* tools/pdbgen/pdb/text_tool.pdb: s/BOUNDS/CLAMP/,
	same for MIN and MAX.

	* app/preferences_dialog.c: the "Check Size" widget was connected
	to the transparency_type variable.

	* plug-ins/common/sobel.c: removed definitions of MIN and ROUND.

	* libgimp/gimp.h: #include "gimplimits.h" and "gimpcolorspace.h".

	* plug-ins/*: don't include the two files.
2000-01-25 23:06:12 +00:00
Sven Neumann f3eb81f4c2 Applied a change suggested by Steinar H. Gunderson.
Fixes crashing on empty images (bug #5536).


--Sven
2000-01-25 21:00:54 +00:00
Sven Neumann 1a5185f087 Disabled "Layer to Imagesize" menu on empty images and "Rotate Layer" on
channels and masks.


--Sven
2000-01-25 20:19:59 +00:00
Sven Neumann ed491085a2 use gimp_tile_cache_ntiles () when creating a new image, disable undo,
* plug-ins/common/colorify.c: use gimp_tile_cache_ntiles ()
* plug-ins/common/lic.c: when creating a new image, disable
  undo, enable it later when the new image is completed

--Sven
2000-01-25 19:11:57 +00:00
Michael Natterer fa30ba04c7 configure.in po-plug-ins/POTFILES.in plug-ins/common/Makefile.am
2000-01-25  Michael Natterer  <mitch@gimp.org>

	* configure.in
	* po-plug-ins/POTFILES.in
	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/megawidget/*: removed. (There were only 3 functions
	left which were used by ~5 plugins, so I moved the resp. functions
	to the plugins). More preview stuff to come...

	* app/airbrush_blob.c
	* modules/colorsel_triangle.c
	* modules/colorsel_water.c: use G_PI instead of M_PI.

	* app/procedural_db.h
	* libgimp/gimpenums.h
	* plug-ins/script-fu/script-fu-constants.c
	* tools/pdbgen/enums.pl: new PDB return value STATUS_CANCEL which
	indicates that "Cancel" was pressed in a plugin dialog. (Useful
	only for file load/save plugins).

	* app/fileops.[ch]
	* app/menus.c: changes to handle STATUS_CANCEL correctly. Did some
	code cleanup in fileops.[ch]. Pop up a warning if File->Save
	failed.

	* app/plug_in.c: return_val[0] is of type PDB_STATUS, not
	PDB_INT32.

	* libgimp/gimpmath.h: new constant G_MAXRAND which equals to
	RAND_MAX if it exists or to G_MAXINT otherwise.

	* libgimp/gimpwidgets.[ch]: new function gimp_random_seed_new()
	which creates a spinbutton and a "Time" toggle.
	Call the function which does the "set_sensitive" magic from the
	radio button callback.

	* plug-ins/[75 plugins]:

	- Return STATUS_CANCEL in all file load/save dialogs if "Cancel"
	  was pressed.
	- Standardized the file plugins' "run" functions.
	- Use G_PI and G_MAXRAND everywhere.
	- Added tons of scales and spinbuttons instead of text entries.
	- Applied uniform packing/spacings all over the place.
	- Reorganized some UIs (stuff like moving the preview to the top
	  left corner of the dialog).
	- Removed many ui helper functions and callbacks and use the stuff
	  from libgimp instead.
	- I tried not to restrict the range of possible values when I
	  replaced entries with spinbuttons/scales but may have failed,
	  though in some cases. Please test ;-)
	- #include <libgimp/gimpmath.h> where appropriate and use it's
	  constants.
	- Indentation, s/int/gint/ et.al., code cleanup.

	RFC: The plugins are definitely not useable with GIMP 1.0 any
	     more, so shouldn't we remove all the remaining compatibility
	     stuff ??? (like "#ifdef GIMP_HAVE_PARASITES")
2000-01-25 17:46:56 +00:00
Stanislav Brabec 7a8b15754b fixed types 2000-01-25 14:13:35 +00:00
Seth Burgess 38b05ffa04 Set a minimum width on display to get around a nasty bug if smaller than
the statusbar width.
Modified Files:
	ChangeLog app/gdisplay_ops.c
2000-01-25 02:33:20 +00:00
Sven Neumann d3722849d0 corrected the conversion between guchar<->guint16 when setting and getting
the color on dnd


--Sven
2000-01-24 22:31:52 +00:00
Manish Singh 81c1e88606 acconfig.h configure.in libgimp/Makefile.am libgimp/gimpregex.h
* acconfig.h
* configure.in
* libgimp/Makefile.am
* libgimp/gimpregex.h
* libgimp/regex.c
* app/Makefile.am
* app/regex.[ch]
* plug-ins/script-fu/Makefile.am
* plug-ins/script-fu/regex.[ch]
* plug-ins/script-fu/interp_regex.c
* tools/pdbgen/pdb/plug_in.pdb
* tools/pdbgen/pdb/procedural_db.pdb: reverted previous regex move
patch. This does *not* belong in libgimp and is just bloat. We'll
use the regex functionality in glib once it has it.

* acinclude.m4
* config.guess
* config.sub
* ltconfig
* ltmain.sh: upgrade to libtool 1.3.4

* app/convert.c
* app/gimpbrushpipe.c: minor cleanups

-Yosh
2000-01-24 22:16:36 +00:00
Sven Neumann a7774c0944 applied patches from Wolfgang Hofer
removed script-fu/regex.[ch]


--Sven
2000-01-24 21:18:25 +00:00
Sven Neumann 1ff1e442fb i18n fixes and updates to the polish translation 2000-01-24 20:32:42 +00:00
Sven Neumann 4bc295014e cleaning up behind Daniel
--Sven
2000-01-24 16:15:01 +00:00
Marc Lehmann 3233202427 *** empty log message *** 2000-01-24 14:26:57 +00:00
jaycox 8b3666c2b3 load the resolution info from the psd file.
* plug-ins/common/psd.c:  load the resolution info from the psd file.
2000-01-24 09:05:38 +00:00
Sven Neumann 1485e40383 set the menu sensitivity after the last path was deleted
--Sven
2000-01-23 18:04:28 +00:00
Sven Neumann bceb97a993 Renamed gimage->ref_count to disp_count and slightly changed
the way it is used. As the new name suggests it is only used
to count the number of displays associated with an image. It
is now impossible to delete an image that has an associated
display. You have to delete the display instead. Before this
change it was possible to delete an image through the PDB that
was created through the UI and bad things happened soon...


--Sven
2000-01-23 13:44:12 +00:00
GMT 2000 Austin Donnelly c5c95ff976 update my entry. I maintain newsprint.
Sat Jan 22 22:14:18 GMT 2000  Austin Donnelly  <austin@gimp.org>

	* MAINTAINERS: update my entry.
	* PLUGIN_MAINTAINERS: I maintain newsprint.

	* app/fuzzy_select.c: fix so if you move the pointer back to
	   where you started, the selection is also the same.  Can people
	   (tigert?) give this a spin - if it isn't as intuitive as the
	   old way we should roll this back.

	* plug-ins/common/jpeg.c: use volatile to get rid of "clobber"
	   warnings from GCC.  Also, fix handling of multiple COM
	   sections, so can load images such as
	   /usr/share/pixmaps/backgrounds/space/clem_full_moon_strtrk.jpg or
	   /usr/share/pixmaps/backgrounds/space/apollo08_earthrise.jpg
	   which used to segv the jpeg plugin.

	* plug-ins/common/newsprint.c: update my email address.

	* plug-ins/common/ps.c: applied gimp-kirchgessner-000116-0.patch:
	   save using PostScript level 2 features which result in files
	   60% smaller than naive level 1 method.  Peter added a
	   checkbutton to the UI to revert to level 1 algorithm, but we
	   default to level 2.  Almost everyone should have a level 2
	   printer, new printers and ghostscript are level 3 these days.
2000-01-22 22:26:20 +00:00
Sven Neumann c605469daa number conversions between different types sucks
--Sven
2000-01-22 20:38:37 +00:00
Sven Neumann 8a8ab4c245 In edit_clear and edit_fill return TRUE if the selection
is empty, since the operation succeded by doing nothing.
Returning FALSE here crashed lots of script-fus.


--Sven
2000-01-22 17:53:23 +00:00
Sven Neumann 489e5ab29e call setup_scale when changing the resolution or unit, so the rulers
get updated correctly


--Sven
2000-01-22 15:05:42 +00:00
Seth Burgess cf7cf417e2 Fix for NULL pointer dereference by Steinar (sesse)
Modified Files:
 	ChangeLog app/transform_core.c
2000-01-22 03:01:46 +00:00
Nick Lamb /GIMP 32ab81a8a0 Fix bug reported by Marc Lehmann. 2000-01-22 01:48:17 +00:00
Stanislav Brabec a5e9bf80d8 gflare and gfig fix 2000-01-22 00:06:08 +00:00