Commit Graph

2132 Commits

Author SHA1 Message Date
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
EST 2000 Gregory McLean 3c781bbcf1 Updated a bit more, split the perl stuff off into a seperate package as it
Fri Jan 21 16:35:26 EST 2000 Gregory McLean <gregm@comstar.net>

        * gimp.spec: Updated a bit more, split the perl stuff off into
        a seperate package as it needs other bits that aren't in a dist
        by default. Also work on auto-generating the %files part.
2000-01-21 21:36:13 +00:00
Sven Neumann f237743c04 I shall not set my terminal wider than 80 chars!! 2000-01-21 17:16:41 +00:00
Sven Neumann 2a4f92f1df provide a copy of the improved g_strescape funtion as found in glib-1.3.x
--Sven
2000-01-21 17:14:30 +00:00
Manish Singh f44ffcd849 reverted previous plugin addition
-Yosh
2000-01-21 01:42:13 +00:00
Stanislav Brabec 6263c616ab new plugins 2000-01-20 23:28:15 +00:00
Stanislav Brabec 0a3f8a2d7b new plugins 2000-01-20 22:36:08 +00:00
Sven Neumann 8b178fcbcc Implemented the "removed" signal for channels and connected qmask to it
to keep the buttons in sync when a qmask channels gets deleted manually.
Fixes bug #2516.


-Sven
2000-01-20 17:10:49 +00:00
Sven Neumann b1307d88c9 fixed bug #2354
--Sven
2000-01-20 15:57:33 +00:00
Sven Neumann aedefe422a laod and save for the curves tool
--Sven
2000-01-20 12:22:54 +00:00
Seth Burgess a4f085afbf Modified Files: ChangeLog app/gdisplay_ops.c
Modified Files:
 	ChangeLog app/gdisplay_ops.c

Shrink wrap fix - ugly but works.
2000-01-20 03:03:24 +00:00
Sven Neumann 2f445a6fc5 exchanged the big fat bigcirc cursors against a new one in the style of
the others


--Sven
2000-01-19 20:40:58 +00:00
Garry R. Osgood 61bbabc6ad gimp/app/disp_callbacks.c gimp/app/ellipse_select.c gimp/app/free_select.c
2000-01-19  Garry R. Osgood <gosgood@idt.net>
* gimp/app/disp_callbacks.c
* gimp/app/ellipse_select.c
* gimp/app/free_select.c
* gimp/app/fuzzy_select.c
* gimp/app/rect_select.c
* gimp/app/rect_select.h
* gimp/app/rect_selectP.h
* gimp/app/tools.c
* gimp/app/tools.h
* gimp/app/toolsF.h

Boolean selection operations, (adding to,
subtracting from, or intersecting with
pre-existing functions) now occur regardless
of the setting of "Disable Cursor Update"
toggle button in Interface/Image Window
category. Introduced a new tool action type,
OperUpdateFunc, To provide a distinct context
for such activity. see
http://idt.net/~gosgood/gimp-patch/patch05.html
for full details. Closes #2568.
2000-01-19 19:06:13 +00:00
Stanislav Brabec a270c0dc2d remove unneccessary rgb_to_hsv and bugfiles 2000-01-19 14:57:19 +00:00
Sven Neumann fecf4ad22b couldn't resist to correct a few spelling errors I introduced yesterday 2000-01-19 10:01:26 +00:00
Tor Lillqvist 5b51c7dbfe Add Win32 workaround for yasuhiro's "i18n fix" change that introduced an
2000-01-18  Tor Lillqvist  <tml@iki.fi>

* app/text_tool.c: Add Win32 workaround for yasuhiro's "i18n fix"
change that introduced an X11 dependency.
2000-01-18 23:12:26 +00:00
David Monniaux 8681013c50 I18N of the gfig plug-in. 2000-01-18 23:02:32 +00:00
Sven Neumann c961fdd870 hopefully fixed gimp_file_load_thumbnail PDB function
--Sven
2000-01-18 21:39:03 +00:00
Sven Neumann cc58abd365 extended gauss_blur functionality and a few other minor hacks
--Sven
2000-01-18 21:01:45 +00:00
Tor Lillqvist 31ee951523 Some clarifications.
2000-01-18  Tor Lillqvist  <tml@iki.fi>

* README.win32: Some clarifications.

* PLUGIN_MAINTAINERS: I maintain psp.

* libgimp/gimp.def
* libgimp/gimpui.def
* libgimp/makefile.cygwin
* libgimp/makefile.msc
* plug-ins/makefile.cygwin
* plug-ins/makefile.msc: Updates.

* plug-ins/twain/twain.c
* plug-ins/winsnap/winsnap.c
* po-plug-ins/POTFILES.in: i18n.
2000-01-18 20:52:16 +00:00
David Monniaux 6101c02b8d Clearer tool-tip for the transform tool. 2000-01-17 22:12:44 +00:00
David Monniaux acc0189114 Internationalization of the GFlare plug-in. 2000-01-17 22:12:44 +00:00
Sven Neumann e9573078d3 fixed a bad bug in the wind plug-in that I just stumpled across when trying
to figure out what it actually does...


--Sven
2000-01-17 22:12:44 +00:00
Sven Neumann f6fcdca142 fixed typos and updated german translation
--Sven
2000-01-17 21:25:29 +00:00
Manish Singh 155cd986e0 use $(LN_S) instead of ln -sf, should fix bug #5289.
* help/C/*/Makefile.am: use $(LN_S) instead of ln -sf, should fix
bug #5289.

* tools/pdbgen/lib.pl
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/gimage_mask.pdb
* tools/pdbgen/pdb/guides.pdb
* tools/pdbgen/pdb/parasite.pdb
* tools/pdbgen/pdb/unit.pdb: more lib work, slight guide tweak

-Yosh
2000-01-17 20:25:55 +00:00
Michael Natterer 2f4a226ed2 emit the "color_changed" signal whenever the user selects "Use FG/BG
2000-01-17  Michael Natterer  <mitch@gimp.org>

	* libgimp/gimpcolorbutton.c: emit the "color_changed" signal
	whenever the user selects "Use FG/BG Color" from the popup menu.

	* libgimp/gimpwidgets.c: gimp_table_attach_aligned(): allow the
	function to be called with label == NULL.

	* plug-ins/AlienMap/AlienMap.c
	* plug-ins/AlienMap2/AlienMap2.c
	* plug-ins/common/CEL.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/apply_lens.c
	* plug-ins/common/checkerboard.c
	* plug-ins/common/engrave.c
	* plug-ins/common/exchange.c
	* plug-ins/common/gauss_iir.c
	* plug-ins/common/gauss_rle.c
	* plug-ins/common/illusion.c
	* plug-ins/common/max_rgb.c
	* plug-ins/common/mblur.c
	* plug-ins/common/oilify.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/shift.c
	* plug-ins/common/smooth_palette.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/video.c
	* plug-ins/common/vpropagate.c
	* plug-ins/common/warp.c
	* plug-ins/sgi/sgi.c: more ui updates.
2000-01-17 17:02:26 +00:00
SHIRASAKI Yasuhiro 11649fc701 plug-ins/common/csource.c plug-ins/common/header.c
* plug-ins/common/csource.c
        * plug-ins/common/header.c
        * plug-ins/common/winclipboard.c
        * po-plug-ins/POTFILES.in: added gettext support.

-- yasuhiro
2000-01-17 13:21:13 +00:00
Stanislav Brabec e304254b2f typo fix 2000-01-16 19:02:55 +00:00
Michael Natterer c5a2909aae oops, the "Add Layer Mask" dialog contained nothing after my last change.
2000-01-16  Michael Natterer  <mitch@gimp.org>

	* app/layers_dialog.c: oops, the "Add Layer Mask" dialog contained
	nothing after my last change.

	* libgimp/gimpwidgets.c: gimp_table_attach_aligned() sets the
	yalign of the widget to 0.5 instead of 1.0.

	* plug-ins/common/align_layers.c
	* plug-ins/common/apply_lens.c
	* plug-ins/common/blinds.c
	* plug-ins/common/blur.c
	* plug-ins/common/cubism.c
	* plug-ins/common/decompose.c
	* plug-ins/common/flarefx.c
	* plug-ins/common/glasstile.c
	* plug-ins/common/jigsaw.c
	* plug-ins/common/mail.c
	* plug-ins/common/nova.c
	* plug-ins/common/randomize.c
	* plug-ins/common/ripple.c
	* plug-ins/common/scatter_hsv.c
	* plug-ins/common/shift.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/spread.c: even more spinbuttons and other ui
	updates.
2000-01-16 15:38:38 +00:00