Commit graph

2757 commits

Author SHA1 Message Date
Sven Neumann
8e31261caa plug-ins: fix build rules for web-browser plug-in in plugin-defs.pl 2010-02-03 20:57:11 +01:00
Sven Neumann
edb41221c6 plug-ins: drop gee and gee-zoom plug-ins
These plug-ins used to be used as easter-eggs and have only been
available thru the PDB. Since they are not useful except for the fun
of staring at the weird code, we can as well remove them entirely.
2010-02-03 20:39:02 +01:00
Sven Neumann
b499d01a71 Bug 608188 - a few strings in Save as... > Raw image data dialog are always in English
Add missing call to INIT_18N().
2010-01-31 21:11:11 +01:00
Michael Natterer
d2406fd4c3 plug-ins: move the UI file to datadir/ui/plug-ins/plug-in-file-png.ui 2010-01-12 22:02:51 +01:00
Sven Neumann
9317bb4548 plug-ins: fix error reporting and a compiler warning 2010-01-12 21:12:40 +01:00
Martin Nordholts
7c32f5442a plug-ins: Check for errors when loading file-png.ui
Check for errors when loading file-png.ui. Still continue execution
though even if an error occurs, because the user can still export.
2010-01-09 20:03:58 +01:00
Sven Neumann
b883d59411 Bug 606372 - Saving to .ppm fails on indexed colorspace
Don't change the pointer to the colormap and then attempt to free it.
2010-01-09 12:12:12 +01:00
Martin Nordholts
0abf5cc4f0 Use Glade + GtkBuilder for file-png.c save_dialog()
To give us experience with Glade + GtkBuilder, use it for the save
dialog in the PNG plug-in. The layout is as good as
identical. Mnemonics still works and strings are still translated.
2010-01-08 21:16:10 +01:00
Sven Neumann
e8ff034ab5 Bug 605237 - the "Antialiasing..." message in the progress bar does not show translated
Add missing call to INIT_I18N().
2009-12-23 23:56:45 +01:00
Nils Philippsen
5aa82f3b6d PAT: sanitize input data
Guard against bogus values of ph.width, ph.height and document why there
are no allocation overflows.
2009-12-09 17:04:45 +01:00
Nils Philippsen
b053021a29 GBR: more input data sanitation
Guard against bh.width or bh.height > GIMP_MAX_IMAGE_SIZE, only allow
valid values of bh.bytes.
2009-12-09 17:01:34 +01:00
Nils Philippsen
869dcd7be1 GBR: sanitize input data
Guard against bogus zero width, height, bytes and allocation overflows.
2009-12-09 17:01:34 +01:00
Nils Philippsen
a9671395f6 PCX: Avoid allocation overflows.
Multiplying gint values may overflow unless cast into a larger type.
2009-12-09 16:32:29 +01:00
Nils Philippsen
ed7f48be05 PCX: sanitize input data
Harden PCX plugin against bad width, height.
2009-12-09 15:40:13 +01:00
Alexandre Prokoudine
fd3ab6ac2b Normalized naming of the file type, added missing , in sentences, fixed a typo 2009-11-30 03:31:35 +03:00
Michael Natterer
825fab3dd0 Bug 602761 - plug-in-grid: Parameters Horizontal/Vertical Spacing and Horizontal/Vertical Offset are reversed
Add "Lines" to the "Horizontal" and "Vertical" labels to clarify
what exactly is affected.
2009-11-24 14:58:28 +01:00
Michael Natterer
028b66beba Bug 602761 - plug-in-grid: Parameters Horizontal/Vertical Spacing and Horizontal/Vertical Offset are reversed
Revert commits bc099a98f3 and
c77781de89 from Jul 27 2006;
also changed refval boundaries of the "width" size entries
in the spirit of the original fix, only reversed.

Rationale: the "horizontal" parameters all have to affect the
horizontal *lines*, so have an effect in *vertical* direction.

Will commit a label change on top to clarify this.
2009-11-24 14:49:17 +01:00
Mircea Purdea
85b8d9668e Modified UI to include default timing
This patch makes two modifications to the UI: listing in the
'Playback speed' combo was changed from percentage values to X
factors, and a new combo was added for 'Default framerate'. The
latter includes common framerates which are used to define the
default duration on unmarked frames. Due to the way in which the
GTK+ timeout function is defined, the framerates and duration values
for this new combo use rounded integer values.
2009-11-20 20:56:09 +01:00
Sven Neumann
724302020b plug-ins: remove redundant comment
Remove a comment that caused a false positive when searching for
deprecated GTK+ symbols. ChangeLogs don't belong into plug-in code
anyway.
2009-11-09 09:40:57 +01:00
Javier Jardón
525347d9f6 Remove deprecated glib symbol: g_mapped_free 2009-11-09 09:28:12 +01:00
Michael Natterer
018e8b0d29 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:31:57 +02:00
Martin Nordholts
eb6bef33e4 Use gtk_widget_set_visible()
In places where the pattern

  if (show)
    gtk_widget_show (widget);
  else
    gtk_widget_hide (widget);

is used, change to

  gtk_widget_set_visible (widget, show);

Also do some other minor cleanups.
2009-10-17 15:07:34 +02:00
Michael Natterer
06673f27e2 Use various GTK+ accessors instead of object->member 2009-10-10 15:10:57 +02:00
Michael Natterer
85274ea1f3 Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:57 +02:00
Michael Natterer
e267783c22 Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:57 +02:00
Michael Natterer
641c2f4e22 Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:57 +02:00
Michael Natterer
02b1566249 Use accessors instead of widget->window and adjustment->value 2009-10-10 15:10:56 +02:00
Michael Natterer
b41bca97fb Use gtk_container_child_get() instead of table->children 2009-10-10 15:10:56 +02:00
Michael Natterer
055d10f366 Use gtk_adjustment_get_value() instead of adjustment->value 2009-10-10 15:10:56 +02:00
Michael Natterer
0458da1832 Use accessors instead of widget->window and adjustment->value 2009-10-10 15:10:56 +02:00
Michael Natterer
9f77899bf1 Use gtk_adjustmenr_get_value() instead of adjustment->value 2009-10-10 15:10:55 +02:00
Michael Natterer
1e47f5c67c Use gtk_widget_get_window() instead of widget->window 2009-10-10 15:10:55 +02:00
Simon Budig
7a6fe273b7 Formatting fix. Argh. 2009-10-03 00:13:01 +02:00
Simon Budig
73071e4618 Fix crasher and behaviour in the GBR plugin for the GRAYA case. 2009-10-02 22:07:46 +02:00
Martin Nordholts
f6eed71a5c plug-ins: Register .data as extension for raw data loader
In order to allow raw data files to be loaded without the need to
explicitly select the file type, make the raw data loader use the
extension ".data".
2009-08-22 10:41:03 +02:00
Sven Neumann
322be18790 remove trailing whitespace 2009-08-18 08:53:12 +02:00
Martin Nordholts
ada56e5c2c plug-ins: Improve JPEG2000 error messages
Improve JPEG2000 error messages by using g_set_error() so we don't
throw many different errors in the users face, and make each error
unique and descriptive instead of using the same message regardless of
the type of error.
2009-08-17 23:34:18 +02:00
Martin Nordholts
29d9a94fd0 Bug 522483 – use gtk_show_uri() instead of calling firefox directly
Use gtk_show_uri() instead of g_spawn_async() on a browser.
2009-08-08 15:26:34 +02:00
Martin Nordholts
f8930a5aaf plug-ins: Translate win32 error messages in web-browser.c 2009-08-08 10:31:11 +02:00
Michael Natterer
f712a316df Bug 589674 – "Send by Email" does not update "Filename"
Use g_filename_display_basename() so it doesn't choke on non-utf8
filenames.
2009-08-01 18:39:18 +02:00
Christopher Howard
9cddfeba73 Bug 589674 – "Send by Email" does not update "Filename"
Remove a conditional so that, in interactive mode, the Send by E-mail
feature always uses the name of the file as the default file field
value, instead of using the previously entered value of the field.
2009-08-01 11:36:14 +02:00
Martin Nordholts
cabcc592f0 Bug 582821 – 'Sphere Designer' does not reset correctly...
Make sure to reconstruct the list in the UI when using layers from a
previous invocation.
2009-07-21 18:52:12 +02:00
Barak Itkin
3801e20df8 Bug 582821 – 'Sphere Designer' does not reset correctly...
Make sure to always call rebuildlist() after reseting, including after
interactively clicking the Reset button. Also, we don't need to
restartrender() after rebuildlist() calls since that is done last in
rebuildlist() itself.
2009-07-21 17:53:05 +02:00
Martin Nordholts
19fe919dce plug-ins: Port file plug-ins to new export API 2009-07-21 16:03:58 +02:00
Martin Nordholts
03e9d6de71 Fix more g_mapped_file_free() warnings 2009-07-20 23:08:49 +02:00
Massimo Valentini
c78f7d1382 Bug 570353 – first time open of .svg file ignores the requested units
The resolution used to convert the sizes between pixels and units was
only set initially and never updated.
2009-07-20 23:04:41 +02:00
Massimo Valentini
e0f21468d4 Bug 555777 – Export to MNG animation fails
'mng_putchunk_plte' and 'mng_putchunk_trns' both copy  the array passed in
as if it was full size even when it is only partly used. This commit wraps
their calls passing the arrays dimensioned correctly.

In function 'respin_cmap', when 'find_unused_ia_colour' returns an index
suitable for transparency the number of colors in the colormap, the
following loop used to access three values beyond the end of the array
'before'.

Finally fix a typo in a call to mng_putchunk_text().
2009-07-20 22:55:43 +02:00
Martin Nordholts
5ad570e3cc Fix compilation errors
Fix compilation errors with obvious fixes.
2009-07-20 12:48:05 +02:00
Martin Nordholts
b2b2b41e62 Get rid of artificial compiler warnings
Get rid of artificial compiler warnings generated with the #warning
directive. They pollute the build output and don't work as incentives
for fixing stuff.
2009-07-20 12:47:59 +02:00
Massimo Valentini
65c21b6bc3 Bug 567466 – PNG comment not found if more than 1 tEXt chunks
Fix an oversight: only the first tEXt chunk of a PNG was considered,
though repeatedly, when looking for the comment.
2009-07-16 22:24:59 +02:00