Michael Natterer
8356003fa2
app: pass the startup monitor to displays opened from the copmmand line
...
Change gimp_get_display_name() to also return the screen, and its
implementation in the GUI to return the initial monitor during
startup. Retrieve that information in app.c using a weird callback
construct and pass the monitor to file_open_from_command_line().
Half-related, add screen and monitor parameters to GimpDisplayShell
and use these initial values for calculating the canvas's initial
extents.
The image windows still don't position themselves correctly though
because we have no mechanism for that whatsoever just yet, but we now
at least pass the needed monitor information to the right objects.
2014-05-03 00:54:20 +02:00
Michael Natterer
7cdede6dec
app: rename gimp_get_screen_resolution() to get_monitor_resolution()
...
Add a "monitor" parameter and return something reasonable, instead
of a useless resolution average of all the screen's monitors. Also
require a screen to be passed now.
2014-05-02 23:58:14 +02:00
Michael Henning
a25defa39e
app: Fix build for windows.
...
This was broken in 7f23fbec34
2014-05-02 17:51:43 -04:00
Michael Henning
017b6fabea
build/win: Upgrade harfbuzz to 0.9.28
2014-05-02 16:56:49 -04:00
Michael Natterer
62257edb3e
app: make sure the GUI appears on the same monitor as the splash
...
Manually figure the monitor where the pointer is and pass it to the
splash, the empty image window and to session_restore() explicly.
2014-05-02 21:16:17 +02:00
Michael Natterer
4bb63322d7
app: keep docks on the monitor in gimp_ui_configurer_move_docks_to_window()
...
and don't move them to the very left and right of the screen, which might
be on different monitors. Also clean up the function.
2014-05-02 21:16:17 +02:00
Mukund Sivaraman
33acc4b62b
app: Use HarfBuzz directly instead of deprecated Pango functions
...
I have verified manually that the previews ("Aa") shown for English and
Tamil are correct (i.e., the modified function works).
2014-05-03 00:27:47 +05:30
Mukund Sivaraman
81e955ed1b
build: Add HarfBuzz dependency
2014-05-03 00:27:47 +05:30
Michael Natterer
7f23fbec34
app: add screen and monitor to all display and image window constructors
...
so they appear on the proper monitor as well.
2014-05-02 20:21:41 +02:00
Mukund Sivaraman
a2f6d60a42
app: Return NULL if assertion fails
2014-05-02 23:32:53 +05:30
Mukund Sivaraman
d79b7e1329
app: Remove unused variable
2014-05-02 23:27:55 +05:30
Mukund Sivaraman
8adb3090c8
app: Fix format specifier
2014-05-02 23:26:09 +05:30
Mukund Sivaraman
499b87d14d
app: Unwrap enum constant definition to a single line
...
gimp-mkenums prints a parse error otherwise though it seems to generate
the correct output.
2014-05-02 23:12:38 +05:30
Mukund Sivaraman
e2d72211cf
gimp-mkenums: Ignore forward declarations
...
Based on patch by Dan Winship (see commit f049262a in the glib git
repo).
2014-05-02 22:57:56 +05:30
Massimo Valentini
c8c105b4df
libgimp: oversight computing thumbnail size
...
exporting an image with metadata and thumbnail and with
an aspect ratio of w:h = 1:5, file-jpeg used to print:
(file-jpeg:): LibGimp-CRITICAL **: gimp_image_get_thumbnail: assertion 'width > 0 && width <= 1024' failed
(file-jpeg:): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(file-jpeg:): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(file-jpeg:): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(file-jpeg:): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(file-jpeg:): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(file-jpeg:): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
2014-05-02 18:44:45 +02:00
Massimo Valentini
ccb735d216
Bug 725553: TIFF compression broken
...
remove the radio button box from the ui file because
it hides the radio_group created in file-tiff-save.c that
also properly connects signals
2014-05-02 18:44:44 +02:00
Michael Natterer
e19ded379b
app: don't call create_display() in image_new_from_template()
...
No other gimpimage-new function calls it; instead, call it in
image_new_from_template()'s callers.
2014-05-02 15:38:26 +02:00
Michael Natterer
051374a1b6
app: add gimp_get_monitor_at_pointer()
...
and use it instead of duplicating that code several times.
2014-05-02 13:23:25 +02:00
Michael Natterer
843866e7e7
app: make things behave more reasonable with multiple monitors
...
There is now a preference option that determines whether windows
should be opened on the same monitor as before. It should be disabled
when the machine gets monitors plugged/unplugged dynamically ("laptop")
and enabled when there is a static multi-monitor setup ("wokstation").
This is merely the current simplistic policy on top of the newly added
underlying infrastructure:
- pass integer monitor numbers around in all places where we already
pass around a GdkScreen. Pass the "current" monitor to these changed
APIs, where "current" is either the monitor where the action-triggering
widget is, or if that is unavailable the monitor where the mouse is.
- add gimp_widget_get_monitor() in order to easily get to the monitor,
just like gtk_widget_get_screen().
- add screen and monitor parameters in some places that were missed
before.
- in sessionrc, save all window positions relative to the window's
monitor, and save the monitor separately, if it's not the screen's
primary monitor.
- when restoring window positions, use the stored monitor when the new
prefs options says so (use the screen's primary monitor if there is
no stored monitor), otherwise use current monitor that is now passed
around.
2014-05-02 03:01:23 +02:00
Michael Natterer
16819917f5
app: add a boolean "normalize" property to gimp:shapeburst
...
and do the normalization in the op, instead of exporting the
max_iterations via a property and doing the normalization outside.
2014-05-01 20:40:55 +02:00
Michael Natterer
830dbf6d5b
app: remove some disabled code from gimp:shapeburst
2014-05-01 20:33:57 +02:00
Michael Natterer
540d3bb6ae
app: port gimp:shapeburst's input from u8 to float
2014-05-01 20:32:26 +02:00
Michael Natterer
d0c67f84c8
plug-ins: file-pdf-save needs two return values now for the error message
2014-05-01 20:27:10 +02:00
Piotr Drąg
cdd78c9b16
Fix typo
2014-05-01 14:59:28 +02:00
Sven Claussner
e8d2dcf263
Fix sort order in /libgimpbase/gimpbase.def
...
Correct sort order regarding gimp_ink_blob_type_get_type
2014-05-01 10:39:23 +02:00
Kevin Cozens
258806ea38
GIMP_METADATA_SAVE_* are bit fields so use | to test for bits in 'flags'.
2014-04-30 13:46:13 -04:00
Michael Natterer
b60e1779cd
app: pass a GimpGradient to gimp_drawable_blend(), not a GimpBlendMode
...
The blend mode is now only a PDB compat enum, translate between
GimpBlendMode and the built-in gradients in the gimp-edit-blend PDB
wrapper.
2014-04-30 09:17:42 +02:00
Michael Natterer
626da25cf9
app: add accessors for the built-in FG->BG, FG->transparent etc. gradients
2014-04-30 09:15:42 +02:00
Michael Natterer
2ed1c59687
app: the FG/BG hardedge gradient didn't have a unique identifier
2014-04-30 02:02:24 +02:00
Elle Stone
3915ac01b4
Bug 728607 - Patch to make divide blend mode work at 32-bit floating point
...
Properly port divide mode to 32-bit float.
2014-04-30 00:16:11 +02:00
Michael Natterer
b196a42d8e
app: add missing include in gimpseamlesscloneoptions.c
2014-04-30 00:05:47 +02:00
Michael Natterer
e1c95c3cb8
libgimpbase: fix sorting in gimpbase.def
2014-04-30 00:03:43 +02:00
Jehan
5ca9240d74
app: display a status error when seamless cloning without foreground image.
2014-04-30 09:11:31 +12:00
Jehan
8f410b927a
app: optimize and add progress information to seamless clone
...
Display information when seamless clone is being processed.
Also ensure that I don't compute again when no properties is changed.
2014-04-30 09:10:31 +12:00
Jehan
cb93f2bd27
app: commit seamless clone in progress when switching tools.
2014-04-30 09:08:09 +12:00
Jehan
5077a149f3
app: add correct options for seamless clone operation.
2014-04-30 09:07:03 +12:00
Michael Natterer
a4223766f2
all,libgimp*: move GimpConvolveType and GimpInkBlobType to libgimpbase
...
and make GimpConvolveType's values sane.
2014-04-29 22:44:58 +02:00
Michael Natterer
f7d71e2eda
pdb: don't scan headers that don't contain PDB-exported enums
2014-04-29 21:08:34 +02:00
Michael Natterer
5a89c15ba1
app: remove unused enum value GIMP_CUSTOM_CONVOLVE
2014-04-29 21:06:42 +02:00
Michael Natterer
22c222291d
libgimpbase,*: clean up enum values in gimpbaseenums.h
...
GIMP_ADD_foo_MASK -> GIMP_ADD_MASK_foo
GIMP_foo_MODE -> GIMP_BLEND_foo
GIMP_foo_CLONE -> GIMP_CLONE_foo
GIMP_foo -> GIMP_DODGE_BURN_TYPE_foo
GIMP_foo -> GIMP_TRANSFER_foo
Add compat values for the old names and compat code to script-fu
and pygimp.
2014-04-29 20:58:30 +02:00
Hartmut Kuhse
86a2f3851f
libgimp: fixing 2ff414d799
...
For windows, exported functions must be listed in the
according .def file. If the function itself is deleted,
the corresponding function must also be deleted from the
.def file
2014-04-29 18:02:36 +02:00
Hartmut Kuhse
f6328244a2
Bug 725577 - file-pdf-save fails to export images larger than 32768 pixels
...
Due to a restriction in libcairo, creating surfaces larger than 32768 pixels
fails, so saving a larger file in gimp as PDF, is rejected.
2014-04-29 17:37:25 +02:00
Michael Natterer
bcce8c95ec
Bug 729158 - Internal inconsistent state with gimp_image_get_selection...
...
+ gimp_channel_copy
Make gimp-channel-copy always return a GimpChannel, and fail the
prodecure if the input channel is not of image size.
2014-04-29 09:16:19 +02:00
Michael Natterer
f04b2d4a19
app: remove GimpBucketFillMode from gimp_display_shell_dnd_bucket_fill()
...
because it's not used any longer, and rename the function to
gimp_display_shell_dnd_fill().
2014-04-29 00:25:02 +02:00
Michael Natterer
2ff414d799
app,libgimp,pdb: remove enum GimpConvolutionType from the public API
...
It was exported accidentially and never used for anything.
2014-04-27 23:05:12 +02:00
Michael Natterer
b883aec224
plug-ins: pass "RAW" to gimp_export_image() in file-raw-data.c
...
So the export logic GUI becomes debuggable.
2014-04-27 19:15:17 +02:00
Dimitris Spingos
f67a7fa862
Updated Greek translation
2014-04-27 19:57:06 +03:00
Michael Natterer
5ec5f79f57
devel-docs: add more stuff to GIMP3-API-Changes.txt
2014-04-27 14:33:16 +02:00
Michael Natterer
a4773a5599
plug-ins: include libgimp/gimp.h and gimpui.h in openexr-wrapper.cc
...
The file does not need the includes, but including libgimp from a C++
file makes sure the build fails if something forbidden gets added to
any public libgimp header, such as a struct member named "private".
2014-04-27 14:33:16 +02:00
Marco Ciampa
2ebf0ee32b
Update italian translation.
2014-04-27 01:18:44 +02:00