Martin Nordholts
f53f8432f8
plug-ins: Fix libcurl URI backend compilation
2011-07-17 15:34:48 +02:00
Martin Nordholts
204d70739d
plug-ins: Stop using gtk_range_set_update_policy() in gfig
2011-07-05 22:13:19 +02:00
Martin Nordholts
1c0115ec95
Fix some warnings
2011-07-05 22:13:18 +02:00
Mikael Magnusson
b8740d285d
plug-ins: remove curl/types.h include in curl uri backend which was removed in 7.21.7
2011-07-05 19:54:08 +02:00
Mikael Magnusson
039d4636f8
plug-ins: add ftp and gopher support to curl uri backend
2011-07-05 19:54:06 +02:00
Mikael Magnusson
520d852912
plug-ins: add --progress=dot to work with newer wgets, and add ftp support
...
Fixes bug 653974 - uri-backend-wget backend is broken
2011-07-05 00:14:34 +02:00
Michael Natterer
8ed5002e4a
plug-ins: #undef G_DISABLE_DEPRECATED for webkit and rsvg
...
because they use G_CONST_RETURN which is deprecated in glib master.
2011-06-21 22:13:58 +02:00
Mikael Magnusson
580b5ba624
plug-ins: Disable one more debug statement in pygimp/pygimp-pdb.c
2011-06-16 14:03:13 +02:00
Mukund Sivaraman
0a20d9bdbd
file-jpeg: Rename misnamed macros
2011-06-10 23:40:23 +05:30
Mukund Sivaraman
f3c395f9df
file-jpeg: (save) Change default subsampling labels
...
This was discussed in #gimp. We change the default subsampling
labels to more easily understood ones ones for users of
graphics software.
2011-06-10 23:37:09 +05:30
Mukund Sivaraman
f03aef5a5e
file-jpeg: (save) Change default restart MCU rows to 16
...
With a 1x1,1x1,1x1 interleave, this will result in a restart
marker every 128 rows of pixels, which is more suitable for a
default setting.
2011-06-10 23:34:44 +05:30
Mukund Sivaraman
4e0a48fabc
file-jpeg: (save) Change the label for restart interval
...
This was discussed in #gimp. The old label was "Frequency (rows)"
which is misleading. This field is basically converted by libjpeg
to another value called a restart interval which is stored in a
JPEG file. The restart interval specifies after how many MCUs
the restart (syncronization) marker appears in the bitstream.
It is not easy to explain to a layperson what an MCU is.
The value in the dialog specifies after how many *MCU rows* the
restart marker appears. This is a libjpeg thing, and libjpeg
converts it to the restart interval.
I have merely renamed the text label of the field and PDB
description as the current text implies pixel rows which is not
the case.
A better alternative is to use the restart interval (in MCUs,
not MCU rows) as saved in the file itself, which more people
than users of libjpeg would understand. But even that setting
is not something that can easily be explained to a layperson.
2011-06-10 23:33:11 +05:30
Mukund Sivaraman
4b3a1c6680
file-jpeg: (save) Change default coding mode to progressive
...
This was discussed in #gimp. This would no longer result in strictly
baseline JPEGs, but progressive mode has been supported for about
a decade in browsers and libjpeg now.
Progressive mode brings two advantages: (1) Medium to large images get
decent space savings to due to coding of large sequences of
zero coefficients, and (2) The images load progressively in a browser
which leads to better user experience when viewing medium to large
images on a website.
Those who want strictly baseline have the option to turn it off.
2011-06-10 23:25:05 +05:30
Mukund Sivaraman
dd912b1cb9
file-jpeg: (save) Change default compression level to 90
...
This was discussed in #gimp. 90 is affordable as the default
in these days of large hard disks and broadband.
2011-06-10 23:16:51 +05:30
Mukund Sivaraman
24c88e0fcf
file-jpeg: (save) Change default subsampling to best quality
...
This was discussed in #gimp. There is no reason to have the default
option throw away such image quality in these days of large hard disks
and broadband.
2011-06-10 23:15:43 +05:30
Dave Lichterman
ba324c06f5
Bug 569550 - Can not handle PSD layers/groups
...
Add support to file-psd plugin for layer group reading.
2011-05-23 20:01:43 +02:00
Nils Philippsen
f657361db0
file-psp: fix overflow protection (CVE-2011-1782)
...
amends commit 48ec15890e
, related to
CVE-2010-4543
2011-05-23 11:58:08 +02:00
Jon Nordby
8407d30c8c
plug-ins: Support layermodes in OpenRaster files
2011-05-22 16:41:54 +02:00
Martin Nordholts
d00196dc7d
plug-ins: Disable debug output from pygimp/pygimp-pdb.c
...
Remove debug output from pygimp/pygimp-pdb.c so we don't get annoying
debug output during the plug-in query phase.
2011-05-19 07:21:54 +02:00
Martin Nordholts
726ec88c26
plug-ins: Fix PyGIMP item warnings
2011-05-18 21:30:05 +02:00
João S. O. Bueno
84dcf6281e
pygimp: add public Item.from_id method
...
Allows the integer IDs returned by the PDB to be promoted to Python
objects. This removes a release blocking factor for pygimp and also
sets base for refactoring pygimp object methods into
pure Python.
2011-05-16 10:13:00 -04:00
João S. O. Bueno
3de6cc5f74
pygimp: Creates the "gimp.Item" class
...
Creates a gimp.Item class and change the hyerarchy so that
Python Vectors, Layers and Drawable classes inherit from it.
Still not working properly, as PDB calls returns raw integer
ID's instead of proper Python objects.
2011-05-16 10:12:59 -04:00
Michael Natterer
ab3fe10275
plug-ins: remove some more -Wunused-but-set-variable
2011-05-15 21:12:49 +02:00
João S. O. Bueno
d15cebe649
plug-ins: Fix procedure and file name, list file for translation
2011-05-13 10:50:25 -04:00
João S. O. Bueno
4245b6bbe1
plug-ins: Create save Gradient as CSS3 python-script
...
A script to enable seamlesly save GIMP gradients as
CSS3 gradients, conformant to w3c and current existing
implementations: mozilla and webkit.
2011-05-12 13:48:26 -04:00
Michael Natterer
77b615e899
plug-ins: use g_object_bind_property() to set widgets sensitive
...
depending on toggle buttons instead of libgimpwidgets' "set_sensitive"
hack.
2011-05-11 11:41:26 +02:00
Mukund Sivaraman
f93398b4cf
file-bmp: Fix typo in comment
2011-05-08 23:33:17 +05:30
Mukund Sivaraman
b3a4a00d29
file-bmp: Use BITMAPV5HEADER structure (bug #649741 )
2011-05-08 22:57:39 +05:30
Mukund Sivaraman
a713175375
file-bmp: Rewrite code
2011-05-08 22:10:20 +05:30
Mukund Sivaraman
4978f370fe
file-bmp: Rewrite code
2011-05-08 21:22:31 +05:30
Mukund Sivaraman
0654b73964
gradient-map: Free gradient_name when done using it
2011-05-07 06:44:22 +05:30
Mikael Magnusson
9e771c3160
file-uri: use correct variable type
...
uri-backend-libcurl.c:195: warning: call to '_curl_easy_getinfo_err_long'
declared with attribute warning: curl_easy_getinfo expects a pointer to
long for this info
2011-05-07 01:34:34 +02:00
Michael Natterer
604d50fc36
Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
...
Apply modified patch from Brennan Shacklett that fixes some more
plug-ins.
2011-05-07 01:11:56 +02:00
Yoshinori Yamakawa
759fad8189
file-psd: Make file-psd-save embed color profile
2011-05-06 20:08:57 +05:30
Mukund Sivaraman
1a025e4fbd
selection-to-path: Fix an uninitialized variable
2011-05-06 19:48:20 +05:30
Mukund Sivaraman
904d3452b9
file-mng: Indent some code
2011-05-06 19:33:46 +05:30
Mukund Sivaraman
5b999ab3f9
file-png: Indent some code
2011-05-06 19:33:46 +05:30
Mukund Sivaraman
17c5e114c3
file-mng: Call png_set_*() functions after png_set_IHDR()
2011-05-06 16:28:25 +05:30
Mukund Sivaraman
cbc2ffc7c2
file-mng: Specify the interlace type explicitly
2011-05-06 16:17:56 +05:30
Mukund Sivaraman
ae654a7aae
file-png: Update comment for png_set_IHDR()
2011-05-05 20:47:53 +05:30
Mukund Sivaraman
fbbeb8d629
file-png: Call png_set_*() functions after png_set_IHDR()
2011-05-05 20:36:45 +05:30
Mukund Sivaraman
dbecc7b705
file-png: Move setting the comment text after IHDR is set
2011-05-05 20:15:02 +05:30
Mukund Sivaraman
4fa2bbabf9
file-png: Specify the interlace type explicitly
2011-05-05 18:53:11 +05:30
Michael Natterer
f660236a4f
plug-ins: remove some -Wunused-but-set-variable
2011-05-05 12:49:38 +02:00
Mukund Sivaraman
5a1a3209e9
Move libpng specific warning CFLAGS to PNG_CFLAGS
2011-05-05 09:48:02 +05:30
Martin Nordholts
28983a5158
app: Add a "check-for-deprecated-procedures-in-script-fu" make target
...
Add a "check-for-deprecated-procedures-in-script-fu" make target that
looks for usage of deprecated procedures in *.scm files. We currently
use quite a bit of deprecated procedures. When we don't do that
anymore, we should connect this to make check somehow so our nightly
build fails if someone deprecated a procedures without also porting
all clients.
Run it like this from the source root:
make -C plug-ins/script-fu check-for-deprecated-procedures-in-script-fu
2011-05-05 01:04:23 +02:00
Michael Natterer
5c7660c6cc
plug-ins: don't #include <libgimp/gimppixbuf.h> in bmp-read.c
2011-04-28 19:58:51 +02:00
Michael Natterer
cc47b2a600
libgimpwidgets/color: move the cairo color utility functions to libgimpcolor
...
Add CAIRO_CFLAGS to a lot of Makefiles to make this possible, and
because they pull in cairo via the libgimp headers.
2011-04-28 15:50:39 +02:00
Mukund Sivaraman
7f635464b0
imagemap: Rebuild scanners
2011-04-27 21:12:40 +05:30
Mukund Sivaraman
56f08d682b
imagemap: Add lexer options to not generate input and yyunput
2011-04-27 21:11:57 +05:30
Mukund Sivaraman
8868a044ea
file-mng: Rename more variables
2011-04-26 15:19:43 +05:30
Mukund Sivaraman
c6a60d79c4
file-mng: Don't access inside PNG structs directly
2011-04-26 15:18:45 +05:30
Mukund Sivaraman
5b5d88a2f1
file-png: Get num_colors properly before passing it on
2011-04-26 15:18:27 +05:30
Mukund Sivaraman
838ba0b78e
file-mng: Rename variables
2011-04-26 15:00:07 +05:30
Mukund Sivaraman
92684a25e9
file-png: Don't access inside PNG structs directly (contd.)
2011-04-26 08:06:27 +05:30
Mukund Sivaraman
be78ba448f
file-xmc: Flush each drawable
2011-04-25 21:03:12 +05:30
Mukund Sivaraman
a1c7606d51
file-png: Conditionally declare text_length
2011-04-25 20:15:39 +05:30
Mukund Sivaraman
f610aa4375
file-png: Don't access inside PNG structs directly
2011-04-25 20:15:39 +05:30
Mukund Sivaraman
d8a98bf7b3
imagemap: Rebuild parsers
2011-04-25 14:30:58 +05:30
Mukund Sivaraman
58002ed20e
imagemap: Fix protos
2011-04-23 07:02:02 +05:30
Michael Natterer
1f78e8e0c6
plug-ins: screenshot: don't pass NULL to gdk_keymap_get_entries_for_keyval()
...
because it's deprecated to do that and badly crashes in GTK+ 3.0.
Use the display's keymap instead.
2011-04-22 00:06:22 +02:00
Michael Natterer
be642b1e14
plug-ins: screenshot: use Cairo to make the screenshot
...
instead of gdk_pixbuf_get_from_drawable(), which is gone in GTK+ 3.0.
2011-04-21 21:10:38 +02:00
Michael Natterer
1616151b0e
libgimp: remove opacity and mode parameters from gimp_layer_new_from_surface()
...
They are passed as default values in almost all cases, and can simply
be set later if needed.
2011-04-21 21:10:37 +02:00
Mukund Sivaraman
e999122e0b
file-pdf-load: Update attribution, removing bogus copyright
2011-04-21 13:57:13 +05:30
Mukund Sivaraman
dcd447f583
map-object: Fix aliasing warnings
2011-04-21 11:08:29 +05:30
Mukund Sivaraman
36ccc9292d
ifs-compose: Don't use deprecated gtk_range_set_update_policy()
2011-04-21 10:57:03 +05:30
Mukund Sivaraman
7bdadd80ba
file-pdf-load: Use better API + cleanups
...
* fixes issues with poppler 0.17 completely
* uses new libgimp API to pass surfaces instead of pixbufs
* uses GTK+ 3 API to convert surfaces to pixbufs where available
2011-04-21 07:48:25 +05:30
Mukund Sivaraman
79f29530bd
Bump poppler required version to 0.12.4
...
The calls that return cairo surfaces are now required, so the
version bump is required.
2011-04-21 06:56:02 +05:30
Michael Natterer
374dd50c43
libgimp: add gimp_layer_new_from_surface()
...
and to enable that, make libgimp depend on Cairo.
2011-04-20 23:58:00 +02:00
Michael Natterer
26bf2b0cd7
Make libgimp depend on GdkPixbuf
...
Move the pixbuf layer and image thumbnail function from libgimpui to
libgimp and move gimp_layer_new_from_pixbuf() to gimplayer.[ch] where
it belongs. Change gimp-2.0.pc accordingly, adapt plug-in Makefiles
and update devel-docs.
2011-04-20 20:04:35 +02:00
Mukund Sivaraman
9b3e1c91fd
file-pdf-load: Don't use deprecated API (bug #646947 )
2011-04-20 18:55:44 +05:30
Michael Natterer
83bbb67781
plug-ins: #undef GDK_DISABLE_DEPRECATED so we are 64 bit safe
...
will revert after 2.7.2 so we see the warnings again.
2011-04-14 21:16:40 +02:00
Kevin Cozens
f1c20cb165
Fixed modulo function which affected 'random' procedure. (See bug #647541 )
2011-04-13 13:39:58 -04:00
Michael Natterer
7ace5f9571
plug-ins: port screenshot to cairo_region_t
2011-04-12 00:26:47 +02:00
Michael Natterer
cb7acfaf7a
plug-ins: forgot some GdkNativeWindow
2011-04-12 00:16:38 +02:00
Michael Natterer
ce25d9ef64
plug-ins: don't use gdk_window_foreign_new_for_display() in screenshot
...
and also avoid GdkNativeWindow.
2011-04-11 23:58:03 +02:00
Michael Natterer
7e6c026790
Globally use GDK_KEY_foo, remove the compat defines from widgets-enums.h
2011-04-11 23:43:03 +02:00
Mikael Magnusson
8ff66342b8
plug-ins: set progress to 1.0 when done
2011-04-10 19:28:43 +02:00
Mikael Magnusson
7552d1aa8b
plug-ins: nova, draw cross and use mouse events properly when the preview allocation is larger than the area
2011-04-10 19:28:43 +02:00
Mikael Magnusson
2fbc0b3389
plug-ins: plasma, port to gimp_drawable_mask_intersect
2011-04-10 19:28:43 +02:00
Michael Natterer
d0e07a2b1f
Bug 155733 - need to check return values of gimp_drawable_mask_bounds()
...
Applied heavily modified patch from Brennan Shacklett that fixes
cartoon.c; it still tries to make a preview of the nop though.
2011-04-10 13:11:37 +02:00
Mukund Sivaraman
1a3315feac
web-page: Use GimpIntComboBox and avoid a lot of excess code
2011-04-10 13:06:12 +05:30
Michael Natterer
8c4d99f883
Bug 645456 - Inconsistent window (role) naming scheme
...
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Mukund Sivaraman
77b76ca945
web-page: Update progress to 1.0 when complete
2011-04-08 18:33:42 +05:30
Mukund Sivaraman
335047fc7f
web-page: Fix use of deprecated API
2011-04-08 18:08:27 +05:30
Mikael Magnusson
61476aa20a
Remove two stray semicolons making if bodies always run
2011-04-08 13:20:37 +02:00
Michael Natterer
24ee3370b8
Depend on GTK+ >= 2.24.3, cairo >= 1.20.1, gdk-pixbuf >= 2.22.1
...
and completely separate configure and sanity checks for gdk-pixbuf
from GTK+, because it's now distributed as a separate package. Remove
all sorts of conditional compiling based on GDK_CHECK_VERSION() and
CAIRO_VERSION.
2011-04-06 19:58:24 +02:00
Mukund Sivaraman
95a32f48b3
web-page: Use a GtkSizeGroup with labels
2011-04-04 18:08:13 +05:30
Mukund Sivaraman
4b06a43953
web-page: Add a default font size combo
2011-04-01 17:01:24 +05:30
Mukund Sivaraman
a1142827df
web-page: Move global variables into webpagevals struct
2011-04-01 16:34:56 +05:30
Mukund Sivaraman
796038b216
web-page: Append GIMP to the user agent string
2011-04-01 16:24:02 +05:30
Mikael Magnusson
d03d804b92
plug-ins: gfig, do cancel stuff when the dialog is closed
2011-04-01 02:32:51 +02:00
Mukund Sivaraman
af74ee79e2
web-page: Ankh said 2048 bytes, not 1024 bytes
2011-04-01 05:35:52 +05:30
Mukund Sivaraman
e9224d41d5
web-page: Increase maximum URL len
2011-04-01 05:21:39 +05:30
Mukund Sivaraman
0b6491f94c
web-page: Untabify code
2011-04-01 05:21:26 +05:30
Mukund Sivaraman
488b73ca7d
web-page: Save and restore plug-in data
2011-04-01 04:51:21 +05:30
Mukund Sivaraman
a4fb10a5af
web-page: Change quote style yet again
2011-04-01 04:14:03 +05:30
Mukund Sivaraman
d85642dd57
web-page: Don't clean image by default
2011-03-31 15:17:53 +05:30
Mukund Sivaraman
9d8cef0628
web-page: Update TODO
2011-03-31 14:50:47 +05:30
Mukund Sivaraman
4387ffde06
web-page: Do better error handling
2011-03-31 14:48:25 +05:30
Mukund Sivaraman
8b3c7ace46
web-page: Change quote style
2011-03-31 14:48:25 +05:30
Mukund Sivaraman
46931ec0d4
web-page: Fix PDB data type of URL
2011-03-31 12:33:41 +05:30
Mukund Sivaraman
2b814b7148
web-page: Don't update progress too often
2011-03-31 12:04:17 +05:30
Mukund Sivaraman
f81c3b1f2c
web-page: Report progress when a webpage is being downloaded
2011-03-31 09:24:48 +05:30
Mukund Sivaraman
6c353096bb
web-page: Convert tabs to spaces
2011-03-31 09:24:01 +05:30
Mukund Sivaraman
5d035ae557
web-page: Update TODO
2011-03-31 09:09:31 +05:30
Mukund Sivaraman
c7a1846ec8
web-page: Make a well-formed URL if necessary
2011-03-31 09:05:57 +05:30
Mukund Sivaraman
d2e836a644
web-page: Update TODO list
2011-03-31 08:54:07 +05:30
Mukund Sivaraman
93e0140cd4
web-page: Add width entry widget
2011-03-31 08:54:07 +05:30
Mukund Sivaraman
0382e204d9
web-page: Return correct flag when action is cancelled
2011-03-31 08:54:07 +05:30
Mukund Sivaraman
e9befddbba
Add the web-page plug-in
2011-03-31 00:39:57 +05:30
Mukund Sivaraman
647f0ada2a
Add support for reading 16-bit raw PPM files
...
This should be useful for loading the output of programs such
as dcraw.
2011-03-26 15:09:59 +05:30
Mukund Sivaraman
c062432444
Fix size_t format modifier yet again
...
This is cause our favourite platform Windows doesn't support
the POSIX `z' modifier for size_t arguments. Yay!
2011-03-24 11:29:23 +05:30
Michael Natterer
28aa26fb28
Bug 635038 - Fails to build on GNU/Hurd
...
Apply patch from Ari Pollak that tries harder to get a value for
PATH_MAX.
2011-03-21 23:40:05 +01:00
Michael Natterer
569299523e
Bug 641529 - Image Map plugin. The name of 2 buttons are not too clear
...
It can't hurt to have more obvious tooltips.
Changed to "Move Area to Top/Bottom".
2011-03-21 22:58:59 +01:00
Mukund Sivaraman
ee6a029040
Add -fno-common to CFLAGS
...
Also fix the errors that were discovered by it. Multiple
definitions of global variables are no longer silently combined by
the linker, and will be reported as errors.
If you see GIMP crash strangely (i.e, apart from the usual crashes),
please go see a head doctor.
2011-03-21 22:51:30 +05:30
Michael Natterer
6e45d788f8
plug-ins: undeprecate most of file-xjt
2011-03-18 09:27:54 +01:00
Kevin Cozens
422248d42a
Fixed cut and paste error that put R5RS fix before the setting of a variable.
2011-03-17 21:43:48 -04:00
Mukund Sivaraman
94fa7a0471
file-jpeg: Validate ExifRational.denominator before division
2011-03-18 03:44:08 +05:30
Mukund Sivaraman
9538f4d61f
file-jpeg: Bug #594282 - Set image resolution from EXIF if available
2011-03-18 03:39:05 +05:30
Kevin Cozens
97bf01569a
Minor R5RS compatibility fix for the expt procedure.
2011-03-17 17:47:45 -04:00
Kevin Cozens
5c07d3b52d
Added a getenv procedure to the ftx extension of Script-Fu.
2011-03-17 17:47:44 -04:00
Mukund Sivaraman
584f9a35e7
Use correct format string for size_t args
2011-03-18 00:06:15 +05:30
Mukund Sivaraman
2deb14c9be
Use correct format string for size_t args
2011-03-18 00:06:15 +05:30
Mukund Sivaraman
9bbfac5c59
Use correct format string for size_t args
2011-03-18 00:06:14 +05:30
Michael Natterer
bd74617756
Bug 643174 - GIMP fails to execute 'Palette to Gradient' function
...
Don't call gimp_gradient_segment_range_split_uniform() if num_segments
is 1 (which happens on a palette with two colors).
2011-03-17 19:21:07 +01:00
Michael Natterer
ac5cd62af5
plug-ins: don't use %ld to print simple integer values
...
I have no clue why %ld was used here, the values are really small...
2011-03-17 15:58:46 +01:00
Michael Natterer
e26c2777c5
plug-ins: use GimpImageType instead of GimpImageBaseType in value-propagate
...
This has been wrong forever.
2011-03-17 15:57:46 +01:00
Michael Natterer
d7c1788f2c
plug-ins: use gdk_window_get_width/height() on GTK+ >= 2.24
2011-03-17 15:56:53 +01:00
Michael Natterer
98e5c32f00
plug-ins: compare gimp_image_base_type() to GIMP_RGB, not GIMP_RGB_IMAGE
...
because the latter is from the wrong enum.
2011-03-17 15:44:47 +01:00
Michael Natterer
d23c0d3fdf
plug-ins: add a typedef for IfsCompose's token enum
...
and don't treat its values as GTokenType.
2011-03-17 15:29:43 +01:00
Michael Natterer
bdf8d3d776
plug-ins: add some GTK_CHECK_VERSION(2,24,0) and use the new GtkComboBoxText
2011-03-17 14:31:39 +01:00
Michael Natterer
bb6436cb44
libgimp: deprecate and rename the global pararasite functions
...
just as it was done for items and images. Remove the "parasite" PDB
group completely.
2011-03-08 14:31:04 +01:00
Michael Natterer
db6f3dfe89
plug-ins: fix glitch in image parasite function renaming
2011-03-08 14:21:57 +01:00
Michael Natterer
87646e9ace
libgimp: deprecate and rename the image parasite functions
...
in exactly the way the drawable functios were turned into item ones.
2011-03-08 13:19:21 +01:00
Michael Natterer
fcfb7cf160
Use the new g_[s]list_free_full() instead of foreach() and free()
2011-03-07 17:11:28 +01:00
Mikael Magnusson
58cc35a0e9
plug-ins: map-object, remove newlayer option from pdb
...
It broke compatibility with scripts and is mostly useful for interactive use anyway.
2011-03-05 22:19:02 +01:00
Michael Natterer
38fd77f5e9
plug-ins: some more s/gtk_container_add/gtk_box_pack_start/
2011-03-05 10:59:56 +01:00
Michael Natterer
97a73ea83f
app: use gtk_box_pack_start() to pack a dialog's toplevel container
...
instead of gtk_container_add()'s because otherwise the widget will not
expand in GTK+ 3.x
2011-03-04 10:44:58 +01:00
Mikael Magnusson
c913c1512a
libgimp, plug-ins: change the parasite function calls in more places
2011-03-02 21:57:37 +01:00
Kevin Cozens
b435e55d14
Applied modified version of second patch for bug #642939 .
...
Original patch supplied by Nelson A. de Oliveira. Modified to not use the
-1 "insanity" for invalid/none layer ID's in scripts per IRC discussion.
Additional scripts were changed to not pass -1 to gimp-image-insert-layer.
2011-03-02 02:55:43 -05:00
Kevin Cozens
403630fd57
Applied modified version of first patch for bug #642939 .
...
Original patch supplied by Nelson A. de Oliveira. Modified to not use the
-1 "insanity" for invalid/none layer ID's in scripts per IRC discussion.
2011-03-02 02:27:15 -05:00
Michael Natterer
7faaf4df41
libgimp: rename the newly added item parasite functions
...
gimp-item-find-parasite -> gimp-item-get-parasite
gimp-item-list-parasites -> gimp-item-get-parasite-list
Also changed the signature of gimp-item-get-parasite-list's C wrapper
in libgimp to be sane.
2011-03-01 22:19:48 +01:00
Mikael Magnusson
203440521a
plug-ins: imagemap, init map type to the default type set in preferences
2011-02-23 23:15:01 +01:00
Mikael Magnusson
6ea2f4881a
plug-ins: imagemap, Don't show popup menu when button 1 is pressed
...
Showing the menu when dragging stuff around broke event handling in
various ways. Also only show the menu on right click.
2011-02-23 13:17:09 +01:00
Mikael Magnusson
cc3f1e8a24
plug-ins: imagemap, don't run execute for sash when redoing
...
It adds event handlers expecting the mouse button to be down, but it
isn't, so everything broke.
2011-02-23 13:17:05 +01:00
Mikael Magnusson
8621807a9f
plug-ins: imagemap, port to cairo
2011-02-23 13:17:04 +01:00
Mikael Magnusson
e012caf1a3
plug-ins: imagemap, tabs to spaces
2011-02-23 13:17:02 +01:00
Barak Itkin
b19645db49
script-fu: Use gimp-image-select-item instead of gimp-item-to-selection
...
gimp-item-to-selection does not seem to exist (in the PDB), so update to the
correct function gimp-image-select-item (which also takes the image as a
parameter).
2011-02-21 00:19:38 +02:00
Mikael Magnusson
2260b15568
plug-ins: lighting, use an expose handler and remove unneeded backbuf
2011-02-20 16:44:19 +01:00
Mikael Magnusson
87750d993e
plug-ins: tabs to spaces in map-object
2011-02-20 15:24:22 +01:00
Mikael Magnusson
0f1da6677c
plug-ins: pass the cairo_t from expose handler to drawing functions in map-object
2011-02-20 15:24:21 +01:00
Mikael Magnusson
fc1ae9e430
plug-ins: better name for new layers in map-object
...
Also postpones adding the layer until after the calculation.
2011-02-20 13:53:33 +01:00
Mikael Magnusson
cf7902b1ab
plug-ins: cleanup map-object a bit
2011-02-20 13:52:50 +01:00
Mikael Magnusson
8be41fa9b7
plug-ins: fix directional light mode in map-object
2011-02-20 13:52:50 +01:00
Mikael Magnusson
5bd9de23b8
plug-ins: add back wireframe mode using cairo
2011-02-20 13:52:49 +01:00
Mikael Magnusson
492ab89b4e
plug-ins: use an undo group in map-object
2011-02-20 13:52:48 +01:00
Mikael Magnusson
e2710c8371
plug-ins: add "Create New Layer" option to map-object
2011-02-20 13:52:48 +01:00
Mikael Magnusson
0344cb4a42
plug-ins: fix pdb input validation in map-object
2011-02-20 13:52:45 +01:00
Mikael Magnusson
85474bff18
plug-ins: remove backbuffer from map-object
2011-02-19 10:43:52 +01:00
Michael Natterer
2827819f85
plug-ins: remove light marker clearing apparatur from map-object
...
We draw everything in expose() now so there is no need to clear
anything.
2011-02-16 22:01:54 +01:00
Michael Natterer
4ec309d562
pygimp: use the new properties instead of hacking around
2011-02-15 21:28:13 +01:00
Michael Natterer
0d22fee220
pygimp: use the new width/height properties instead of poking into the button
2011-02-15 20:55:57 +01:00
Michael Natterer
7907a496a5
pygimp: use the new "channel" property instead of poking into the scale
2011-02-15 18:52:33 +01:00
Simon Budig
48ec15890e
file-psp: fix for bogus input data. Fixes bug #639203
2011-02-14 21:46:45 +01:00
Simon Budig
7fb0300e1c
fixes for some buffer overflow problems (see bug #639203 )
2011-02-14 21:08:03 +01:00
Saul Goode
2d419a0cb1
Bug 640612 - Sample Colorize does not function non-interactively
...
Fixed bug with Sample Colorize plugin's non-interactive mode
2011-02-14 18:54:21 +01:00
Kevin Cozens
29716bccec
Changed deprecation message to state name of replacement procedure
2011-02-13 14:02:46 -05:00
Michael Natterer
b4c9987de6
libgimp: move the item parasite functions to the parasites files
...
and rename them yet again to be gimp_item_foo_parasite() instead of
gimp_item_parasite_foo() because the latter is just a misnaming (they
are not GimpItemParasites, they are GimpParasites attached to
GimpItems, just as layers are attached to images).
2011-02-13 17:28:30 +01:00
Ulf-D. Ehlert
d650117dfb
Bug 625571 - Request context tags for reasonable translation on some plug-ins
...
Add more context tags for some plug-in labels. There were still
ambiguous "From:" and "To:" labels which were not fixed by commit
1dfa7b5e
(2010-07-29).
2011-02-13 15:29:29 +01:00
Michael Natterer
491e55c4e4
plug-ins: move the expose handler to map-pbject-preview.c
2011-02-13 14:16:32 +01:00
Michael Natterer
9912e3f4ee
plug-ins: separate preview computation from drawing in map-object
2011-02-13 14:12:08 +01:00
Mikael Magnusson
5173b8559c
lighting: remove useless function call
2011-02-13 13:19:08 +01:00
Mikael Magnusson
e68df27853
map-object: put the y value in the y spinner
2011-02-13 13:19:07 +01:00
Mikael Magnusson
49fc3a125e
lighting: port to cairo, replace wireframe with live preview
2011-02-13 13:18:07 +01:00
Martin Nordholts
221f6d0085
plug-ins: file-uri/uri.c initialize backends non-interactvely
...
In order for DISPLAY-less builds like our nightly Jenkins builds to be
able to query the file-uri plug-in, perform the backend initialization
in query() in run mode GIMP_RUN_NONINTERACTIVE instead of the
"unspecified" 0 == GIMP_RUN_INTERACTIVE run mode.
2011-02-13 10:32:31 +01:00
Kevin Cozens
d2d6edc687
Eliminated compiler warning (from SVN version 71 of the TinyScheme project)
2011-02-09 01:41:34 -05:00
Kevin Cozens
fac7d4dd64
Pulled in final changes from 1.40 release of the separate TinyScheme project.
...
With this commit, the TinyScheme component of Script-Fu now has all changes
and bug fixes that have been applied to the separate TinyScheme project.
2011-02-07 15:56:21 -05:00
Kevin Cozens
526c42dc35
Optionally report error line (from SVN r63 of official TinyScheme)
2011-02-07 15:56:21 -05:00
Kevin Cozens
7597d99c8d
Added unwind-protect (from SVN r57 of official version of TinyScheme).
2011-02-07 15:56:20 -05:00
peter sikking, m+mi works
6db80c765d
remove garbage I injected
2011-02-06 20:21:20 +01:00
peter sikking, m+mi works
7cb5c67bc8
removing references to ps-menurc
2011-02-06 19:57:59 +01:00
Martin Renold
54792780fc
plug-ins: openraster fix for non-ascii layer names
...
Set the utf-8 filename flag in the ZIP.
Before, layer PNG filenames were stored with undefined coding,
causing most ZIP libraries to interpret it as cp437, if anything.
We now pass a unicode object to ziplib, which does the right thing.
2011-02-05 15:25:22 +02:00
Nils Philippsen
0af966b63f
Bug 641259 - [abrt] gimp-2:2.6.11-1.fc14: py-slice.py:172:slice:TypeError: integer argument expected, got float
...
py-slice: cast cellspacing to int in pyslice() to avoid tracebacks
2011-02-02 17:11:28 +01:00
Omari Stephens
ed872c7c6e
Bug 599065 - PNG output: omit unwanted chunks (sRGB)
...
If the image has neither a gamma set nor a color profile set, then we
should leave the image untagged. We should not tag as sRGB by default
because it is too arbitrary.
2011-02-02 08:34:39 +01:00
Martin Nordholts
d9b24bb1f3
plug-ins: Fix warning about usage of uninitialized variable
2011-01-26 08:05:34 +01:00
Omari Stephens
5cae0bf65c
Bug 630748 - display filters do not work
...
Create and use Cairo-compatible API for display filters. Also
includes logic changes to the display filters to deal with cairo's
ARGB32 pre-multiplied buffer format.
2011-01-25 20:24:42 +01:00
Michael Natterer
47eaecdc9d
libgimp: deprecate a bunch of old selection API
...
namely ellipse_select(), free_select(), rect_select() and
round_rect_select() because they are fully replaced by the new
gimp_image_select_foo() functions. Will deprecate the rest as soon as
I have figured how to put the parameter overkill of the remaining
functions into context properties.
2011-01-25 19:28:30 +01:00
Michael Natterer
9703bed2ef
libgimp: reorder the parameters of the new and unused gimp-image-select API
...
Make the common "image" and "operation" parameters come first.
2011-01-24 14:53:42 +01:00
Kevin Cozens
8a8e8c6fad
Fixed OP_INTEGERP op-code to match version in Tinyscheme 1.40
...
I don't know how the original block of code got the way it was since it has
been a single line of code in TinyScheme since the second revision. This also
prevents the compile from breaking if the USE_MATH #define was ever set to 0.
2011-01-19 15:30:47 -05:00
Kevin Cozens
5c471ecea3
Fixed an out of place line in the comment block at the start of the file.
2011-01-16 23:09:24 -05:00
Kevin Cozens
f571ebf247
Fix for SourceForge bug #2826594 (allow reverse to work on empty list).
...
From SVN version 64 of official version of TinyScheme.
Also removed obsolete op code from opdefines.h table.
2011-01-16 16:26:57 -05:00
Kevin Cozens
73f9f652bc
Added URL to document referenced in comment block at top of file.
2011-01-16 13:16:31 -05:00
Michael Natterer
0a1a2915d0
plug-ins: implement GObject::constructed() instead of ::constructor()
2011-01-14 09:38:46 +01:00
Michael Natterer
efd6c90572
plug-ins: remove calls to gtk_range_set_update_policy() where useless
...
either because we were setting the default value, or because there is
already a delay in the callback code like calling gimp_preview_update().
2011-01-08 21:58:22 +01:00
Rob Antonishen
8a2a18b792
Increased maximum radius to 500 in unsharp-mask plugin
2010-12-08 21:47:09 +01:00
Michael Natterer
3242ad592e
plug-ins: don't forget to set the progress to 1.0 when finished
2010-11-25 23:28:25 +01:00
Michael Natterer
09ebacdb82
pygimp: undeprecate quite some stuff
2010-11-24 22:02:22 +01:00
Mukund Sivaraman
cfde98394c
Fix scheme for (integer? 7.0) which should return #t
2010-11-20 15:43:37 +05:30
Nelson A. de Oliveira
f72d8a4a39
Move file opening block to after some tests
...
Instead fclosing fp for every return, it's better to move the block
to a lower position, since it's not used before.
2010-11-12 21:56:17 +01:00
Nelson A. de Oliveira
7666e5cf36
Fix memory and descriptor leaks
2010-11-12 21:56:17 +01:00
Nils Philippsen
d2ebadcfb9
colorxhtml: check validity of source_type
2010-11-09 11:33:49 +01:00
Mikael Magnusson
b07d02cdc6
plug-ins: destroy cairo surface in CML Explorer
2010-11-02 21:50:45 +01:00
Mikael Magnusson
81fee76747
plug-ins: port Lighting Effects to cairo
2010-11-02 21:34:11 +01:00
Michael Natterer
73d7fbedeb
plug-ins: port file-pdf-load to GimpUnitComboBox and build it again
2010-10-31 21:38:27 +01:00
Mikael Magnusson
16f5727e59
plug-ins: port CML Explorer to cairo
2010-10-31 16:54:33 +01:00
Mikael Magnusson
39199fb98b
plug-ins: port sphere-designer to cairo
2010-10-31 15:47:06 +01:00
Michael Natterer
29d63afbb7
pdb: remove gimp-item-to-selection again
2010-10-30 22:19:22 +02:00
Simon Budig
5111498e11
More input validation in the psd load plugin
...
plug-ins/file-psd/psd-load.c: Avoid dereferencing a random pointer
on chn_a[cidx].data[i] when comp_mode is unrecognized.
Spotted by Mikael Magnusson <mikachu@gmail.com>.
2010-10-28 20:34:44 +02:00
Mukund Sivaraman
b072e75833
file-jpeg: Make cinfo struct static so asynchronous saves don't crash
...
The plug-in already makes a copy of the cinfo struct for asynchronous
save, but it seems that somewhere inside cinfo, a pointer points to
another region in this struct. So, everything is copied as-is, and
the pointer ends up pointing to somewhere in the save_image() stack
which is gone when that function returns.
2010-10-23 17:23:22 +05:30
Mukund Sivaraman
64ed52144a
Update indentation
2010-10-23 00:39:03 +05:30
Mukund Sivaraman
4998863806
file-jpeg: Fix a crash when toggling settings in preview mode
...
This patch cancels the GSource for background_jpeg_save() and calls it
synchronously to free resources. Without this patch, multiple GSources
for background_jpeg_save() get setup and result in a crash.
2010-10-22 22:23:42 +05:30
Mukund Sivaraman
349a401cc5
file-jp2-load: Elaborate comment
2010-10-19 20:26:30 +05:30
Sven Neumann
6302ea7de8
pygimp: remove wrappers for gimp_min_colors() and gimp_install_cmap()
2010-10-19 10:02:27 +02:00
Mukund Sivaraman
9bbcf8c6b3
plug-ins/common/file-jp2-load: Check for other kinds of alpha components
...
ImageMagick seems to write out the 'matte' component (number 3).
2010-10-18 19:21:51 +05:30
Mukund Sivaraman
83eeb724ca
plug-ins/common/screenshot: Remove extra article
2010-10-17 16:06:24 +05:30
Mukund Sivaraman
42f67f4d96
Rename WebKit's AM_CONDITIONAL
...
This is so that WebKit can be used elsewhere in GIMP.
2010-10-17 00:29:04 +05:30
Mukund Sivaraman
daf6456663
Fix install rule for individual plug-ins
2010-10-16 15:08:42 +05:30
Nils Philippsen
bec9e4b4ea
pygimp: deprecate gimpui.UnitMenu
2010-10-15 17:27:06 +02:00
Nils Philippsen
bc265758b0
pygimp: add wrapper for GimpUnit, GimpUnitComboBox
2010-10-15 17:27:06 +02:00
Nils Philippsen
b07eed8208
pygimp: fix building with deprecated GimpUnitMenu
2010-10-15 17:27:06 +02:00
Michael Natterer
c36f762f7d
libgimpwidgets: deprecate GimpUnitMenu and gimp_prop_unit_menu_new()
...
Add gimp_prop_unit_combo_box_new() and adapt all places using the
prop_unit_menu. Some things are broken now, like there are no pixel
digits set, resolution unit menus show "pixels" and warn badly when
pixels is selected, and file-pdf-load is not built right now.
More fixes to come...
2010-10-14 23:03:34 +02:00
Alexandre Prokoudine
fee17f8712
Cleanup of recent changes in porting scripts to new API. Marked layer names in carved-logo.scm for translation while at that
2010-10-10 21:07:24 +04:00
Alexandre Prokoudine
3abf6de944
Porting scripts to new API, marking layer names for translation
2010-10-10 17:59:29 +04:00
Sven Neumann
4d18135b46
script-fu: use "Rule" instead of "Hrule"
2010-10-10 01:56:00 +02:00
Sven Neumann
9100fd1c62
script-fu: don't include whitespace used as separator in translatable string
...
Actually we should use a printf()-like syntax here to make such strings
translatable.
2010-10-10 01:54:11 +02:00
Alexandre Prokoudine
0a4657ae9f
Porting scripts to new API, marking layer names for translation
2010-10-10 03:52:15 +04:00
Alexandre Prokoudine
e1a705c125
Marking layer names for translation
2010-10-10 03:41:21 +04:00
Alexandre Prokoudine
e062acbc64
Porting scripts to new API, marking layer names for translation
2010-10-10 03:40:59 +04:00
Alexandre Prokoudine
466523f732
Porting scripts to new API
2010-10-10 02:40:48 +04:00
Alexandre Prokoudine
bb9c1210b3
Porting to new API: add-[layer|channel] > insert-[layer|channel] and more, perspective-shadow.scm will need revisiting re. new item transformation API
2010-10-10 02:14:53 +04:00
Mukund Sivaraman
7a9793ba6e
plug-ins: Use the correct enum value in file-psp
2010-10-08 22:56:53 +05:30
Mukund Sivaraman
9853df88a1
plug-ins: Increase size of values array in file-xmc to allow for values[5] access
2010-10-07 17:55:36 +05:30
Mukund Sivaraman
cfe6e3a00e
plug-ins: Increase size of values array in file-gih to allow for values[1] access
2010-10-07 17:52:13 +05:30
Mukund Sivaraman
ea29074bf8
plug-ins: Increase size of values array to allow for values[3] access
2010-10-07 17:50:36 +05:30
Martin Nordholts
4a32f3e500
plug-ins: Port common/file-tiff-load.c to new item transform API
...
We don't need to use gimp_context_set_transform_resize() since we flip
around the center.
Note that the current code will never work before we try to rotate the
layer before it is added to the image, but that's a different bug...
2010-10-06 19:55:33 +02:00
Martin Nordholts
719e04f5d9
plug-ins: Port common/curve-bend.c to new item transform API
2010-10-06 19:55:33 +02:00
Martin Nordholts
9d0e69d43b
plug-ins/file-sgi: Quickfix for -Wtype-limits warnings
...
Quickfix for "warning: comparison is always false due to limited range
of data type".
2010-10-05 08:04:17 +02:00
Martin Nordholts
cc7755f876
Port stuff to gimp_item_is_text_layer()
...
Port stuff to gimp_item_is_text_layer() instead of
gimp_drawable_is_text_layer(). Nevermind the previous commit, it
should never have been pushed...
2010-10-05 07:39:00 +02:00
Sven Neumann
6be41a6675
Bug 631199 - Printing and Print preview broken with cairo 1.10
...
Add missing calls to cairo_surface_mark_dirty().
2010-10-03 14:05:20 +02:00
Sven Neumann
ec5fa2fb26
plug-ins: unify handling of return values
...
For consistency Use a static GParam array for the return values
in all plug-ins.
2010-09-30 22:46:30 +02:00
Mukund Sivaraman
cad6ba9b94
Make values static to avoid returning bogus ptr
...
God knows how many other plug-ins have this.
2010-09-30 23:14:56 +05:30
Alexandre Prokoudine
eed3b054bc
Porting to new API: add-[layer|channel] > insert-[layer|channel] and more
2010-09-28 09:10:07 +04:00
Alexandre Prokoudine
9f2f17851c
Porting to new API: add-[layer|channel] > insert-[layer|channel]
2010-09-28 03:44:30 +04:00
Alexandre Prokoudine
b02ba67199
Porting to new API: add-[layer|channel] > -insert-[layer|channel]
2010-09-28 03:30:33 +04:00
Kevin Cozens
b0d8ba5ffd
Additional fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
...
plug-ins/script-fu/scheme-wrapper.c:
- Fixed set and get of UTF-8 coded strings for parasites.
plug-ins/script-fu/tinyscheme/scheme.c:
- Additional fix to string-append and fixed substring. The mk_empty_string
routine is not the way to allocate space for UTF-8 coded strings.
- Added some comments.
2010-09-20 23:20:45 -04:00
Kevin Cozens
ae6670ba8b
Last part of fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
...
At the end of a double quoted string, readstrexp() was passing byte count
instead of character count to mk_counted_string(). Cleaned up basic_inchar().
It ignores bad UTF-8 coded characters when reading from file or buffer.
2010-09-19 17:48:17 -04:00
Kevin Cozens
6855267470
First part of fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
...
Fixed string-set! and string-append due to mixup of chars vs. bytes.
Fixed calculation of pointer to past end of string in open-*-string
routines.
2010-09-19 17:48:17 -04:00
Michael Natterer
16491ce8a8
pygimp: completely undeprecate pygimp-image.c
...
Somebody really needs to take care of deprecating all that
stuff in pygimp itself, and add API for the new functions.
2010-09-16 20:58:21 +02:00
Michael Natterer
98d8d686e8
pygimp: don't use gimp_image,layer_scale_full()
2010-09-16 20:53:15 +02:00