Commit graph

133 commits

Author SHA1 Message Date
Sven Neumann 6c7bfb61e0 unset 'show-border' on the GtkNotebook that holds the hints.
2007-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: unset 'show-border' on the
	GtkNotebook that holds the hints.

svn path=/trunk/; revision=22305
2007-04-24 10:29:01 +00:00
Sven Neumann d197451496 configure.in added checks for X11 Shape Extension and build the shaped
2007-02-26  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/common/screenshot.c: added checks for X11 Shape
	Extension and build the shaped window feature conditionally.

svn path=/trunk/; revision=21993
2007-02-26 10:20:22 +00:00
Sven Neumann 29d4058a6d don't attempt to offset a NULL region
svn path=/trunk/; revision=21961
2007-02-20 15:54:04 +00:00
Sven Neumann 5d4480bbe4 reworked shape support. Instead of fiddling with pixbuf pixels, do most of
2007-02-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: reworked shape support. Instead of
	fiddling with pixbuf pixels, do most of the work in the core.


svn path=/trunk/; revision=21960
2007-02-20 15:48:41 +00:00
Sven Neumann 5aae2f5853 changed hint and button label.
2007-02-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: changed hint and button label.


svn path=/trunk/; revision=21930
2007-02-16 13:53:06 +00:00
Sven Neumann 4c2e1336e5 removed obsolete tooltip
svn path=/trunk/; revision=21925
2007-02-15 22:20:57 +00:00
Sven Neumann 42606415ae added hints to the dialog.
2007-02-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: added hints to the dialog.


svn path=/trunk/; revision=21924
2007-02-15 14:38:46 +00:00
Sven Neumann fd057b7f1b fixed the new code for windows that are partly offscreen
svn path=/trunk/; revision=21923
2007-02-15 12:07:40 +00:00
Sven Neumann 2515dc6864 for shaped windows, add an alpha channel and erase pixels outside the
2007-02-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: for shaped windows, add an alpha
	channel and erase pixels outside the shape.

svn path=/trunk/; revision=21922
2007-02-15 10:23:34 +00:00
Sven Neumann 3cd8d4849c if we can't grab the pointer, use the window under the pointer instead of
2007-01-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (select_window_x11): if we can't
	grab the pointer, use the window under the pointer instead of
	bailing out with an error message.


svn path=/trunk/; revision=21821
2007-01-31 09:47:06 +00:00
Sven Neumann 2c6668d30c fixed tooltip.
2007-01-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (shoot_dialog): fixed tooltip.


svn path=/trunk/; revision=21820
2007-01-31 09:08:46 +00:00
Sven Neumann 41237259c9 In all files, changed the standard copyright notice to say "GIMP - The GNU
2006-12-09  Sven Neumann  <sven@gimp.org>

        * In all files, changed the standard copyright notice to say
        "GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Sven Neumann 3788521a04 pass the number of bytes to gimp_parasite_new(), not the number of
2006-11-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: pass the number of bytes to
	gimp_parasite_new(), not the number of characters.
2006-11-03 11:08:24 +00:00
Sven Neumann c61b193310 reverted Bill's change. Applying the delay before the selection makes as
2006-09-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: reverted Bill's change. Applying
	the delay before the selection makes as much sense as doing it
	afterwards. Do it consistently at least.
2006-09-17 12:21:09 +00:00
William Skaggs 9da34b7e79 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: when shooting a region, apply delay
	_after_ selecting region, applying before is useless.
2006-09-15 16:11:36 +00:00
Sven Neumann 247fc372d5 added a convenience function to create a layer from a GdkPixbuf.
2006-08-17  Sven Neumann  <sven@gimp.org>

	* libgimp/gimppixbuf.[ch]: added a convenience function to create
	a layer from a GdkPixbuf.

	* plug-ins/common/poppler.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/svg.c: use gimp_layer_new_from_pixbuf().

	* libgimp/gimpui.def: updated.
2006-08-17 16:52:25 +00:00
Sven Neumann 476ec672c8 plug-ins/common/poppler.c plug-ins/common/screenshot.c improved progress
2006-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/poppler.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/svg.c: improved progress handling.
2006-08-17 15:41:04 +00:00
Sven Neumann d00f0c76e3 don't leak X resources.
2006-06-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (select_window_x11): don't leak X
	resources.
2006-06-30 09:02:39 +00:00
Sven Neumann 390791f931 use macros in an attempt to make the key grabbing code more readable.
2006-06-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: use macros in an attempt to make
	the key grabbing code more readable.
2006-06-29 14:42:02 +00:00
Raphael Quinet f8e16bb2d4 allow the usage of Escape together with CapsLock, NumLock and ScrollLock.
2006-06-29  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/screenshot.c (select_window_x11): allow the
	usage of Escape together with CapsLock, NumLock and ScrollLock.
2006-06-29 09:29:23 +00:00
Raphael Quinet 412b574b63 use 0 instead of AnyModifer in the call to XGrabKey. This prevented the
2006-06-29  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/screenshot.c (select_window_x11): use 0 instead
	of AnyModifer in the call to XGrabKey.  This prevented the
	cancellation of the screenshot with Escape in some environments.
2006-06-29 08:43:56 +00:00
Sven Neumann d43df96695 added an else that we lost somehow.
2006-06-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: added an else that we lost somehow.
2006-06-29 08:23:08 +00:00
Sven Neumann cbdcc6ba73 plug-ins/common/mail.c updated inlined icons from Tango Icon library.
2006-06-28  Sven Neumann  <sven@gimp.org>

        * plug-ins/common/mail.c
        * plug-ins/common/screenshot.c: updated inlined icons from Tango
        Icon library.
2006-06-28 11:13:13 +00:00
Michael Natterer b11878174d apply the delay before selecting, not before grabbing, so the user has
2006-06-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/screenshot.c: apply the delay before selecting,
	not before grabbing, so the user has time to rearrange things.
	Fixes bug #345214.
2006-06-18 09:44:43 +00:00
Michael Natterer d8285d0dd9 plug-ins/common/animationplay.c plug-ins/common/colormap-remap.c
2006-06-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/animationplay.c
	* plug-ins/common/colormap-remap.c
	* plug-ins/common/gbr.c
	* plug-ins/common/gih.c
	* plug-ins/common/gnomeprint.c
	* plug-ins/common/mail.c
	* plug-ins/common/pat.c
	* plug-ins/common/plugin-browser.c
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/screenshot.c
	* plug-ins/common/uniteditor.c
	* plug-ins/metadata/metadata.c
	* plug-ins/print/print.c
	* plug-ins/uri/uri.c: cast stock-ids passed to
	gimp_plugin_icon_register() to (const guint8 *).
2006-06-17 12:21:47 +00:00
Sven Neumann a450ba46bb declared GimpPlugInInfo and GimpParamDef arrays as const.
2006-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/*/*.c: declared GimpPlugInInfo and GimpParamDef arrays
	as const.
2006-05-16 12:26:20 +00:00
William Skaggs a8a732c414 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/AlienMap2.c
	* plug-ins/common/CML_explorer.c
	* plug-ins/common/align_layers.c
	* plug-ins/common/animationplay.c
	* plug-ins/common/animoptimize.c
	* plug-ins/common/apply_lens.c
	* plug-ins/common/autocrop.c
	* plug-ins/common/autostretch_hsv.c
	* plug-ins/common/blinds.c
	* plug-ins/common/blur.c
	* plug-ins/common/borderaverage.c
	* plug-ins/common/bumpmap.c
	* plug-ins/common/c_astretch.c
	* plug-ins/common/cartoon.c
	* plug-ins/common/ccanalyze.c
	* plug-ins/common/channel_mixer.c
	* plug-ins/common/checkerboard.c
	* plug-ins/common/color_enhance.c
	* plug-ins/common/colorify.c
	* plug-ins/common/colortoalpha.c
	* plug-ins/common/compose.c
	* plug-ins/common/convmatrix.c
	* plug-ins/common/cubism.c
	* plug-ins/common/curve_bend.c
	* plug-ins/common/decompose.c
	* plug-ins/common/deinterlace.c
	* plug-ins/common/depthmerge.c
	* plug-ins/common/despeckle.c
	* plug-ins/common/destripe.c
	* plug-ins/common/diffraction.c
	* plug-ins/common/displace.c
	* plug-ins/common/dog.c
	* plug-ins/common/edge.c
	* plug-ins/common/emboss.c
	* plug-ins/common/engrave.c
	* plug-ins/common/exchange.c
	* plug-ins/common/film.c
	* plug-ins/common/flarefx.c
	* plug-ins/common/fp.c
	* plug-ins/common/fractaltrace.c
	* plug-ins/common/gauss.c
	* plug-ins/common/gee.c
	* plug-ins/common/gee_zoom.c
	* plug-ins/common/glasstile.c
	* plug-ins/common/gnomeprint.c
	* plug-ins/common/gqbist.c
	* plug-ins/common/gradmap.c
	* plug-ins/common/grid.c
	* plug-ins/common/guillotine.c
	* plug-ins/common/hot.c
	* plug-ins/common/illusion.c
	* plug-ins/common/iwarp.c
	* plug-ins/common/jigsaw.c
	* plug-ins/common/laplace.c
	* plug-ins/common/lic.c
	* plug-ins/common/mail.c
	* plug-ins/common/mapcolor.c
	* plug-ins/common/max_rgb.c
	* plug-ins/common/mblur.c
	* plug-ins/common/mosaic.c
	* plug-ins/common/neon.c
	* plug-ins/common/newsprint.c
	* plug-ins/common/nlfilt.c
	* plug-ins/common/noisify.c
	* plug-ins/common/normalize.c
	* plug-ins/common/nova.c
	* plug-ins/common/oilify.c
	* plug-ins/common/papertile.c
	* plug-ins/common/photocopy.c
	* plug-ins/common/pixelize.c
	* plug-ins/common/plasma.c
	* plug-ins/common/plugin-browser.c
	* plug-ins/common/polar.c
	* plug-ins/common/procedure-browser.c
	* plug-ins/common/randomize.c
	* plug-ins/common/retinex.c
	* plug-ins/common/ripple.c
	* plug-ins/common/sample_colorize.c
	* plug-ins/common/scatter_hsv.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/semiflatten.c
	* plug-ins/common/sharpen.c
	* plug-ins/common/shift.c
	* plug-ins/common/sinus.c
	* plug-ins/common/smooth_palette.c
	* plug-ins/common/snoise.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/common/spread.c
	* plug-ins/common/struc.c
	* plug-ins/common/threshold_alpha.c
	* plug-ins/common/tile.c
	* plug-ins/common/tileit.c
	* plug-ins/common/tiler.c
	* plug-ins/common/uniteditor.c
	* plug-ins/common/unsharp.c
	* plug-ins/common/video.c
	* plug-ins/common/vinvert.c
	* plug-ins/common/vpropagate.c
	* plug-ins/common/warp.c
	* plug-ins/common/waves.c
	* plug-ins/common/whirlpinch.c
	* plug-ins/common/wind.c
	* plug-ins/common/winprint.c
	* plug-ins/common/zealouscrop.c: Give "helpful" blurbs to menu-
	accessible plugins, and mark them for translation.  Probably there
	is room for improvement in some of them.  Still needs to be done for
	plug-ins not in "common".
2006-03-15 21:10:34 +00:00
Michael Natterer 17d835fbc9 cleaned up the GUI.
2005-12-16  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/screenshot.c (shoot_dialog): cleaned up the GUI.
2005-12-16 17:01:44 +00:00
Manish Singh 72cc37aae3 can't use gtk_main_quit as a timeout function, since it doesn't return a
2005-11-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/screenshot.c: can't use gtk_main_quit as a
        timeout function, since it doesn't return a value. Wrap it in a
        function that returns FALSE instead. Fixes bug #322343.
2005-11-30 08:01:04 +00:00
Michael Natterer 3f5050323f removed '...' from progress messages. They are redundant because we are
2005-09-30  Michael Natterer  <mitch@gimp.org>

	* plug-ins/*/*.c: removed '...' from progress messages. They are
	redundant because we are already in a progress. Ported some more
	g_strdup_printf()/gimp_progress_init() to
	gimp_progress_init_printf(). Core will follow...
2005-09-30 08:16:10 +00:00
Michael Natterer 0c2d06f738 drop the restriction that plug-ins registered in <Image> must have
2005-09-26  Michael Natterer  <mitch@gimp.org>

	* app/plug-in/plug-in-params.c (plug_in_proc_args_check): drop the
	restriction that plug-ins registered in <Image> must have
	RUN-MODE, IMAGE, DRAWABLE parameters because everything but
	RUN-MODE is actually treated as optional be the rest of the code.

	* plug-ins/script-fu/scripts/paste-as-brush.scm
	* plug-ins/script-fu/scripts/paste-as-pattern.scm: removed IMAGE
	and DRAWABLE parameters.

	* plug-ins/common/screenshot.c
	* plug-ins/twain/twain.c
	* plug-ins/winsnap/winsnap.c: register menu entries in
	<Image>/File/Acquire
2005-09-26 00:25:49 +00:00
Michael Natterer ebb21be0e9 plug-ins/common/randomize.c plug-ins/common/raw.c
2005-08-15  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/randomize.c
	* plug-ins/common/raw.c
	* plug-ins/common/retinex.c
	* plug-ins/common/ripple.c
	* plug-ins/common/rotate.c
	* plug-ins/common/sample_colorize.c
	* plug-ins/common/scatter_hsv.c
	* plug-ins/common/screenshot.c
	* plug-ins/common/sel_gauss.c
	* plug-ins/common/semiflatten.c
	* plug-ins/common/sharpen.c
	* plug-ins/common/shift.c
	* plug-ins/common/sinus.c
	* plug-ins/common/smooth_palette.c
	* plug-ins/common/snoise.c
	* plug-ins/common/sobel.c
	* plug-ins/common/softglow.c
	* plug-ins/common/sparkle.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/common/spread.c
	* plug-ins/common/struc.c
	* plug-ins/common/sunras.c
	* plug-ins/common/svg.c: canonicalize procedure and parameter
	names. Misc cleanups.
2005-08-15 19:39:02 +00:00
Sven Neumann c0484b468f Reverted inadvertent commit of changes to screenshot.c and only fixed the
signedness issue instead.
2005-07-30 14:10:52 +00:00
Sven Neumann 26eecddbdc loop unrolling.
2005-07-30  Sven Neumann  <sven@gimp.org>

	* app/base/gimphistogram.c (gimp_histogram_calculate_sub_region):
	loop unrolling.

	* app/dialogs/about-dialog.c
	* app/widgets/gimpselectiondata.c
	* plug-ins/bmp/bmpread.c (ReadBMP)
	* plug-ins/gfig/gfig.c (gfig_load)
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/imagemap/imap_selection.c
	* plug-ins/jpeg/jpeg-exif.c
	* plug-ins/common/dicom.c: fixed signedness warnings.
2005-07-30 14:05:57 +00:00
Hans Breuer d9ac028c50 updated dont include "gimpmessagedialog.c" to avoid redefinitions. Instead
2005-07-10  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated
	* app/widgets/gimpcontrollerlist.c : dont include
	"gimpmessagedialog.c" to avoid redefinitions.
	Instead include gimpmessagebox.h and gimpmessagedialog.h

	* plug-ins/common/raw.c : include <io.h>
	* plug-ins/common/screenshot.c : make it compile. It
	still has no code to actually work on win32.
2005-07-10 16:24:57 +00:00
Sven Neumann 19a65560cd use the canonical form of signal names.
2005-06-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/*/*.c: use the canonical form of signal names.
2005-06-30 16:03:24 +00:00
Sven Neumann 0a0c1b5582 Changed "Screen Shot" to "Screenshot". 2005-06-14 18:25:33 +00:00
Sven Neumann c85e56291a some dialog changes, hopefully to the better.
2005-06-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: some dialog changes, hopefully to
	the better.
2005-06-14 18:12:11 +00:00
William Skaggs 052d95c906 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: make " no decorations" option
	work; problem pointed out by Jean-Luc Coulon on dev list.
2005-06-05 15:50:20 +00:00
William Skaggs c635b2be13 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: trap errors when running
	XGrabKey, to prevent bail-out on BadAccess error as
	reported by Jean-Luc Coulon on developers list; solution
	suggested by Simon Budig.
2005-06-02 18:03:50 +00:00
Sven Neumann 8cd1ab2e28 minor tweak to the dialog layout 2005-05-31 16:02:27 +00:00
Sven Neumann 006db0f6f0 don't leak the keys array 2005-05-31 15:39:17 +00:00
Sven Neumann 315061ca00 use XGrabKey() to grab the Escape key instead of doing a full keyboard
2005-05-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (select_window_x11): use XGrabKey()
	to grab the Escape key instead of doing a full keyboard grab.
2005-05-31 15:35:51 +00:00
Sven Neumann 50c61cc2e6 capitalization and mnemonics.
2005-05-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: capitalization and mnemonics.
2005-05-30 09:10:29 +00:00
Sven Neumann b6d0c2d3a2 also grab the keyboard and allow to cancel the operation using the Escape
2005-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (select_window_x11): also grab the
	keyboard and allow to cancel the operation using the Escape key.
2005-05-23 10:47:32 +00:00
Sven Neumann b08d42c66d always apply the selected delay.
2005-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: always apply the selected delay.
2005-05-23 09:53:18 +00:00
Sven Neumann b73e908ca5 use gimp_spin_button_new() which calls gtk_spin_button_set_numeric() for
2005-04-17  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpsizeentry.c: use gimp_spin_button_new() which
	calls gtk_spin_button_set_numeric() for us. Part of a fix for bug
	#300935.

	* libgimpwidgets/gimpwidgets.c: improved the API docs for
	gimp_spin_button_new().

	* app/tools/gimpcolorbalancetool.c
	* app/tools/gimplevelstool.c
	* plug-ins/common/screenshot.c
	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/rcm/rcm_dialog.c
	* plug-ins/script-fu/script-fu-interface.c
	* plug-ins/winsnap/winsnap.c: use gimp_spin_button_new().
2005-04-17 15:28:28 +00:00
William Skaggs 4581608580 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/screenshot.c: Change default back to Window
	rather than Root.  When shooting window, delay after instead
	of before selecting, so shooting menus etc becomes possible.
2005-04-09 16:54:17 +00:00
William Skaggs 51a539a529 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* configure.in
	* plug-ins/common/screenshot.c: allow option of screenshot
	without decorations if libXmu is present (fixes bug #133626),
	clean up code a bit.
2005-03-24 23:29:12 +00:00
Sven Neumann 5ef815da2c seperated platform specific code into individual functions; should make it
2005-03-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: seperated platform specific code into
	individual functions; should make it easier to contribute the missing
	platform specific code ...
2005-03-24 01:12:07 +00:00