Commit graph

1297 commits

Author SHA1 Message Date
Michael Natterer 79e27e984a More context & dnd stuff... 1999-10-28 15:05:49 +00:00
Asbjørn Pettersen d518393284 add <time.h> for time_t 1999-10-28 09:48:14 +00:00
Sven Neumann 5749bc2143 remember the drawable we were working on instead of relying to
* app/transform_core.c: remember the drawable we were working on
    instead of relying to gimp_active_drawable ().
    This should fix bug #2381.

--Sven
1999-10-27 22:59:29 +00:00
Sven Neumann 48e3c7a412 app/drawable_cmds.c The PDB procedures
* app/drawable_cmds.c
   * tools/pdbgen/pdb/drawable.pdb: The PDB procedures
     gimp_drawable_is_[layer|channel|channel_mask] were not renamed,
     but changed all over the place. This made the rotate plug-ins
     fail.

   * app/procedural_db.c: Spit out a warning if a procedure wasn't
     found in the PDB. Actually free the hash_table entries on
     procedural_db_free().

--Sven
1999-10-27 20:45:57 +00:00
Marc Lehmann b2773c790e pdb renames 1999-10-27 20:23:04 +00:00
BST 1999 Andy Thomas dcf082b6cc app/lc_dialog.c app/selection.c app/color_area.c app/paths_dialog.c
Wed Oct 27 20:51:10 BST 1999 Andy Thomas <alt@gimp.org>

	* app/lc_dialog.c
	* app/selection.c
	* app/color_area.c
	* app/paths_dialog.c
	* tools/pdbgen/pdb/gimage.pdb
	* app/gimage_cmds.c

	General memory leak cleanups.
1999-10-27 20:09:46 +00:00
Manish Singh 664b4ed687 add "(GIMP)" to the menu entry for XCF, in an attempt to make it clear
* app/xcf.c: add "(GIMP)" to the menu entry for XCF, in an attempt
to make it clear that it is the native file format.

* app/gimpcontext.c: correct doubled arg name on arg type addition,
which was messing up the internal gtkarg hashtable

-Yosh
1999-10-27 02:01:27 +00:00
Sven Neumann e547526eba shrinked most icons to their minimum size
--Sven
1999-10-27 00:09:39 +00:00
Michael Natterer a74d52fbbf Use the context almost everywhere. 1999-10-26 18:27:27 +00:00
Manish Singh f697f6cfab don't free the old filename pointer till we're all done, since we might be
* app/gimpimage.c: don't free the old filename pointer till we're
all done, since we might be passed our own filename as a param
and reference it after freeing. The code didn't heed it's own
warning ;) (TigerT, this should fix that filename corruption bug)

-Yosh
1999-10-25 23:51:56 +00:00
Tor Lillqvist 0274d8526d Uncomment the inclusion of gdkcursor.h that should happen only with GTk+
1999-10-25  Tor Lillqvist  <tml@iki.fi>

* app/cursorutil.h: Uncomment the inclusion of gdkcursor.h that
should happen only with GTk+ 1.3, anyway? Why was it commented
out?

* app/tile_swap.c: Close before unlinking on Win32, too.

* libgimp/gimp.def: Updates, sorted.

* plug-ins/makefile.{cygwin,msc}: Add the gap and imagemap
plug-ins. Remove palette plug-in (what happened to it?).

Portability fixes from Hans Breuer:

* plug-ins/FractalExplorer/Dialogs.c
* plug-ins/gap/*.c:
* plug-ins/gimpressionist/gimpressionist.c:
* plug-ins/common/spheredesigner.c: Ifdefify system-dependent includes.

* plug-ins/common/psp.c: Remove an unused variable.

* plug-ins/imagemap/{imap_csim.y,imap_csim_parse.c}: Use
<string.h>, not <strings.h>.

* plug-ins/imagemap/imap_rectangle.c (rectangle_near_sash): Use
the & operator for function names to return pointers to them.

* plug-ins/winsnap/winsnap.c (sendBMPToGimp):
gimp_drawable_flush() should be called before resizing the layer
and image. Now the snapshot of a window is returned the correct
size, it's not padded in width to a multiple of four pixels.
1999-10-25 19:20:41 +00:00
Marc Lehmann 88e0cc3155 api change #2, fix #1 1999-10-24 20:49:09 +00:00
Sven Neumann eb26d8e07e autoscroll in the layers dialog, a few cosmetic changes
and a german plug-in po-file


--Sven
1999-10-24 20:16:48 +00:00
Sven Neumann 2df06061bd get rid of remaining (invisible) layers after merging visible layers
* libgimp/gimpexport.c: get rid of remaining (invisible) layers
        after merging visible layers

        * app/channel_ops.[ch]: applied a patch from Garry R. Osgood that
	seems to fix bugs #2261 and #2382 (crashes when using offset).
        A few more changes made the dialog actually work...

        * app/ops_buttons.c: plugged a memleak I introduced yesterday

--Sven
1999-10-24 13:26:30 +00:00
Sven Neumann 7a432a7734 first effort in making the L&C dialog nicer.
--Sven
1999-10-23 20:30:59 +00:00
Manish Singh 93cc6e9691 db_lookup seems to be used pretty often as a sanity check, giving lots of
* app/procedural_db.c: db_lookup seems to be used pretty often as a
sanity check, giving lots of spurious messages. Move the check to
db_execute

-Yosh
1999-10-23 01:30:52 +00:00
BST 1999 Andy Thomas 8ffd721992 app/procedural_db.c
Sat Oct 23 00:02:53 BST 1999 Andy Thomas <alt@gimp.org>

	* app/procedural_db.c

	Error message output to error console if you atemp to call
	a PDB function that does not exists. Useful ito check if scripts/
	plugins fail for unknown reasons,
1999-10-22 23:10:15 +00:00
Manish Singh 7db44664a6 sync the names with the last API patch
-Yosh
1999-10-22 22:57:03 +00:00
BST 1999 Andy Thomas 85bbd68cf9 app/text_tool.c
Fri Oct 22 20:39:13 BST 1999 Andy Thomas <alt@gimp.org>

	* app/text_tool.c

	Fixed the problem where the border values was been ignored.
1999-10-22 19:45:05 +00:00
Sven Neumann c3a1787087 handle CAN_HANDLE_LAYERS_AS_ANIMATIONS correctly
* libgimp/gimpexport.c: handle CAN_HANDLE_LAYERS_AS_ANIMATIONS
  correctly

* app/scan_convert.c: trivial optimizations

* app/nav_window.c: applied the patch from Shuji Narazaki that makes
  the navigation window work with tablets. Fixed some rounding errors
  and stopped the flicker.


--Sven
1999-10-21 19:35:35 +00:00
BST 1999 Andy Thomas 5e79064513 app/nav_window.c
Wed Oct 20 23:08:31 BST 1999 Andy Thomas <alt@gimp.org>

	* app/nav_window.c

	Now works correctly with non-square pixels. (dot-for-dot off
	and xres != yres).
1999-10-20 22:15:13 +00:00
BST 1999 Andy Thomas 35539062e6 app/layer.c
Tue Oct 19 21:50:52 BST 1999 Andy Thomas <alt@gimp.org>

	* app/layer.c

	Fixed rounding error in preview generating code that
	produced dithering where no dithering should have been!
1999-10-19 20:56:51 +00:00
Michael Natterer b74d256981 changed the "parent context" implementation:
1999-10-19  Michael Natterer  <mitch@gimp.org>

	* gimpcontext.[ch]: changed the "parent context" implementation:

	- Automatically connect/disconnect the "*_changed" signals when
	  changing the parent and when setting the "defined" flag of the
	  attributes.
	- Store the former *_defined booleans in a single guint32.
	- Added generic functions to set the "defined" flags of the
	  attributes and to copy attributes between contexts.

	The contexts now correctly handle disappearing images and
	displays, so we don't have to explicitly reset them any more.

	* context_manager.[ch]: adopted to the changed context
	implementation, connect to the user context's "tool_changed"
	signal to switch the per-tool contexts, don't connect to the
	"removed" signal of the image context.

	* brush_select.c
	* tool_options.c: use LayerModeEffects instead of int when calling
	gimp_context_set_paint_mode().

	* gdisplay.c: no need to reset the active display when deleting it
	because the context connects to the "destroy" signal of the shell
	now.

	* menus.c: a shortcut for the navigation window. Moved
	<Image>/Image/Colors/Desaturate before the separator.

	* tools.c: tools_select(): set the active tool of the user context
	instead of calling a special context manager function.
1999-10-19 15:52:32 +00:00
Nick Lamb /GIMP 500f5ae2cb Really fixed #2152 this time. Yosh asked me to rename *_OK as PLUG_IN_*
so that's also changed this time.
1999-10-19 04:58:17 +00:00
Nick Lamb /GIMP 7590b2da36 Fixed #2169 and as a side-effect discovered that RGB_IMAGE means
something quite different for app vs plug-ins. The one in app is
now called RGB_IMAGE_OK to differentiate them.
1999-10-19 04:24:21 +00:00
BST 1999 Andy Thomas 6e28558948 app/bezier_select.c app/edit_selection.c app/flip_tool.c app/gimage_mask.c
Mon Oct 18 21:24:47 BST 1999 Andy Thomas <alt@gimp.org>

	* app/bezier_select.c
	* app/edit_selection.c
	* app/flip_tool.c
	* app/gimage_mask.c
	* app/paths_dialog.c
	* app/paths_dialogP.h
	* app/undo.c
	* app/tools.h
	* app/tools.c

	1) Fixed some problems with the paths tool. Now the tool suboption
	"new point" is selected automatically when appropriate. Eg if you
	have the "add point" suboption selected and click  on a point
	not on the curve the "new point" option will become selected and the
	new point will be added.

	2) The "new point" option is defaulted to on when a new image is created	or a new image is selected from the image menu.

	3) Move and flip tool now effect the path if it is locked.

	4) Edit stroke now uses the currently selected tool as it should do
	when stroking.
1999-10-18 20:55:25 +00:00
Tomas Ogren f922d155fa plug-ins/common/compose.c plug-ins/gimpressionist/gimpressionist.c
1999-10-17  Tomas Ogren  <stric@ing.umu.se>

* plug-ins/common/compose.c
* plug-ins/gimpressionist/gimpressionist.c
* plug-ins/gimpressionist/preview.c
* plug-ins/gimpressionist/presets.c
* plug-ins/gimpressionist/repaint.c: i18n de-lamerism
Using _(" OK ") etc gives the translators much extra work...

* app/about_dialog.c: Fix my name

* app/menus.c: Change order of resize and scale in L&C&P to match the
normal image menu

* po/sv.po: Update
* po-plug-ins/sv.po: Update
1999-10-17 21:07:28 +00:00
BST 1999 Austin Donnelly cf6260af60 long overdue fix for problem with overrunning buffers in a couple of
Sun Oct 17 21:28:58 BST 1999  Austin Donnelly  <austin@gimp.org>

	* app/iscissors.c: long overdue fix for problem with overrunning
	    buffers in a couple of places.  Should now work with image
	    that are not an exact multiple of the tile size, and cope with
	    moving and adding control point before the curve is closed.
	    This may well fix a number of the bugs people have reported
	    on iscissors.  As of now, I know of no bugs in iscissors - if
	    you find one, I'm interested.
1999-10-17 20:28:56 +00:00
Asbjørn Pettersen 0c1b22fb0d add cstr_TokenType() 1999-10-17 16:13:30 +00:00
Michael Natterer 33b2d27e16 new GimpSignalType gimp_sigtype_int_int_int.
1999-10-17  Michael Natterer  <mitch@gimp.org>

	* app/gimpsignal.[ch]: new GimpSignalType gimp_sigtype_int_int_int.

	* app/gimpcontext.[ch]: set/get colors as separate r/g/b values
	instead of a guchar[3] array.
	The "[foreground|background]_changed" signal handlers must have
	the following signature now:
	color_changed_callback (GimpContext *, gint, gint, gint, gpointer).
1999-10-17 13:48:19 +00:00
Michael Natterer f650984006 added the possibility to store the current tool, FG/BG color, brush,
1999-10-17  Michael Natterer  <mitch@gimp.org>

	* app/gimpcontext.[ch]: added the possibility to store the current
	tool, FG/BG color, brush, pattern and gradient, but don't use
	these attributes yet.

	Before replacing the get/set color/brush/... functions with
	context functions, I'll have to change the "parent context"
	implementation to something where the children catch the parent's
	color/brush/..._changed signals.
	Finally, updating the indicator_area, device_status, tool_options
	etc. will be done by connecting to their own context's "*_changed"
	signals, which will be much cleaner than calling the update
	functions from various places.

	(I think this is a "consistency fix", please let me know if you
	consider it a new feature).
1999-10-17 12:28:38 +00:00
Marc Lehmann ec40ac728b API PATCH #2 or so 1999-10-17 00:07:55 +00:00
Michael Natterer fbf9e32ec5 preview_size_to_str() uses the new set of preview sizes now.
1999-10-16  Michael Natterer  <mitch@gimp.org>

	* app/gimprc.c: preview_size_to_str() uses the new set of preview
	sizes now.
1999-10-16 13:33:42 +00:00
Michael Natterer f3df254713 made the "Dialogs" sub-menus of <Toolbox>/File and <Image> consistent.
1999-10-16  Michael Natterer  <mitschel@cs.tu-berlin.de>

	* app/menus.c: made the "Dialogs" sub-menus of <Toolbox>/File and
	<Image> consistent.

	* app/nav_window.c: wheelmouse support as in the gdisplay shell.
1999-10-16 13:07:15 +00:00
Michael Natterer cd39d59e6d fixed a SEGV: The "refresh" callback should call select_pattern(), not
1999-10-16  Michael Natterer  <mitch@gimp.org>

	* app/pattern_select.c: fixed a SEGV: The "refresh" callback
	should call select_pattern(), not pattern_select_select().
1999-10-16 11:40:39 +00:00
Michael Natterer fe9db44dda applied gimp-gosgood-991011-0.patch, so double-clicking on the channel
1999-10-16  Michael Natterer  <mitch@gimp.org>

	* app/channels_dialog.c: applied gimp-gosgood-991011-0.patch, so
	double-clicking on the channel widget pops up the attributes
	dialog again. Thanks for the very detailled documentation of the
	bug (which I tried to fix at totally different places before ;-)
1999-10-16 09:50:55 +00:00
Nick Lamb /GIMP 96961a7bb4 Recalculate size of ctree in the preferences dialog after adding all
the categories. This is the real fix for #2508.
1999-10-14 04:03:46 +00:00
Sven Neumann fce4ad6327 a whole lotta guide fixes
--Sven
1999-10-13 23:07:45 +00:00
BST 1999 Andy Thomas 08529ff5e7 app/crop.c app/sca_convert.c
Wed Oct 13 21:37:51 BST 1999 Andy Thomas <alt@gimp.org>

	* app/crop.c
	* app/sca_convert.c

	Fixes to memory problems (use of freed memory references) found
	by running with dmalloc.

	* app/paths_dialog.c

	Locking of multiple paths are now displayed correctly in the
	transform tool.
1999-10-13 20:53:30 +00:00
Manish Singh 77199c578c [both these are from patches by SHIRASAKI Yasuhiro]
* app/menus.c: tearoff i18n patch

* plug-ins/AlienMap/AlienMap.c
* plug-ins/AlienMap/Makefile.am
* plug-ins/AlienMap2/AlienMap.c
* plug-ins/AlienMap2/Makefile.am: misc i18n fixes

-Yosh
1999-10-12 06:53:01 +00:00
Nick Lamb /GIMP 12de92ed6e There are scrollable widgets in this dialog
=> GUI 101 - it should be resizable (grow only)
1999-10-11 01:47:58 +00:00
Sven Neumann fc4e6346df dnd improvements
--Sven
1999-10-09 20:33:53 +00:00
Adrian Likins 5112a25488 ooops 1999-10-09 19:17:55 +00:00
Sven Neumann c46a4cafa1 finer granulated preview_size
--Sven
1999-10-09 13:37:34 +00:00
Manish Singh 67c733b70c applied gimp-kirchgessner-991009-0, allow image ids == 0 and i18n
* plug-ins/common/film.c: applied gimp-kirchgessner-991009-0, allow
image ids == 0 and i18n

* app/gimp.gh
* app/colormap_dialog.gc: sync with changes

-Yosh
1999-10-09 01:44:31 +00:00
Sven Neumann e65d40975a use preview_size in undo_history
--Sven
1999-10-09 01:03:11 +00:00
Sven Neumann 692887db20 more export fiddling and a small change to the undo_history
--Sven
1999-10-09 00:11:50 +00:00
Sven Neumann bac4d13db2 fixed scrolling to currently selected row and added preview images.
* app/undo_history.c: fixed scrolling to currently selected row
  and added preview images.


--Sven
1999-10-08 16:53:08 +00:00
Sven Neumann 38a67ce230 a patch to the path tool from Simon Budig
and some cleanup in plug-ins/common/vpropagate.c


--Sven
1999-10-08 10:22:39 +00:00
Manish Singh 8873e7553a 1.1.10 stuff
-Yosh
1999-10-06 23:48:01 +00:00