Commit graph

31385 commits

Author SHA1 Message Date
Jehan
a2772a721f Bug 689523: data bootstrap initial values in the text style editor at construction.
This was causing first a visual issue where the style editor UI would
show no default font/size/style at instanciation, but even a crash
when the user would change the font size or style (bold, italic...)
from this UI before selecting a font or writing a text.
2012-12-12 12:37:22 +09:00
Marco Ciampa
85fcef0c5c Updated italian translation. 2012-12-10 23:07:31 +01:00
Marco Ciampa
772c717216 Updated italian translation. 2012-12-10 22:49:44 +01:00
Liam Quin
e5cee5c56f Bug 689712 - Change default units of rotate colors plugin (rcm) from...
Degrees makes much more sense as default unit than radians.
(cherry picked from commit a268b7e03f)
2012-12-06 00:42:03 +01:00
Mukund Sivaraman
b717e155d9 file-tga: Simplify has_alpha expression 2012-12-05 00:45:36 +05:30
Mukund Sivaraman
050fcb4b37 file-tga: Handle 16-bit palettes with transparency (#687802)
Primarily, this fixes a buffer overflow in the colormap buffer.

* We promote such images to GIMP_RGBA_IMAGE now.
* The alpha handling for the colormap to RGBA conversion has been
  fixed.
* Inverted transparency in upsampling has been fixed.
2012-12-05 00:39:51 +05:30
Mukund Sivaraman
0d35348718 file-tiff-load: Fix loading of TIFFs containing old-style JPEG images (#688761)
This commit also moves the updated section of code, so that based on
worst_case, the image type and layer type are updated.
2012-12-04 13:38:11 +05:30
Jehan
c6b81f2f4e Bug 685557 - fix closing and saving a new image.
Current implementation had 2 issues, fixed by this commit:
1/ after the file save dialog is closed, the image would not close.
2/ if you switched the visible tab before saving the new image, it
would save and close the visible tab, instead of the expected one.
2012-11-28 00:01:25 +09:00
Marek Černocký
95e400d597 Updated Czech translation 2012-11-26 10:59:09 +01:00
Marek Černocký
4e428d923b Updated Czech translation 2012-11-25 20:06:50 +01:00
Michael Natterer
34f70ad192 libgimpwidgets: remove all item width logic from GimpPageSelector
It seems GtkIconView got fixed, and now the pile of code I added to
make the layout nice has exactly the opposite effect. Get rid of the
pile.
(cherry picked from commit f1c785fb37)
2012-11-23 23:31:45 +01:00
Michael Natterer
67a1f9e40c Bug 688715 - Unconfigured eraser should be set to eraser tool
I don't know what I tested before, but it didn't work. This patch does
the magic in two places, one of which I missed.
(cherry picked from commit 4e340b613b)
2012-11-23 01:23:25 +01:00
Michael Natterer
54ae57f290 Bug 688715 - Unconfigured eraser should be set to eraser tool
If a device has no saved settings, and it is a GDK_SOURCE_ERASER, set
it to the eraser tool.
(cherry picked from commit 512fbcbbb2)
2012-11-22 23:45:52 +01:00
Michael Natterer
6d10655c94 app: disable maximize_state_in_aux_data because it needs a WM 2012-11-19 23:24:40 +01:00
Michael Natterer
43a1daa5e1 Bug 688305 - drag and drop for guides broken if 'gtk-enable-tooltips = 0' is set
Fix GimpSpinScale too: add the needed events ourselves, and handle
motion hints (which the parent classes add) in motion().
(cherry picked from commit 85a099f988)
2012-11-18 20:05:48 +01:00
Massimo Valentini
9c36859511 Bug 688305: drag and drop for guides broken 2012-11-15 19:02:43 +01:00
Nils Philippsen
d0bb5aea25 app: remove check which hides conditions that should not happen
Remove a GTK_IS_WINDOW() check where this would hide parent widgets
being passed in that don't have a gtk toplevel. This should not happen
and if it does we want to know about it.
(cherry picked from commit f6f8079013)
2012-11-14 17:01:04 +01:00
Nils Philippsen
0e7d59af50 app: fix marking file dialogs as transient if opened from context menu
GimpDisplayShell isn't a GtkWindow (anymore), therefore use
gtk_widget_get_toplevel() to find the actual toplevel window.
(cherry picked from commit 1a4087bd5f)
2012-11-14 17:01:04 +01:00
Nils Philippsen
7fa86da96d app: limit physical memory size by GIMP_MAX_MEMSIZE as well
(cherry picked from commit c4365d4c14)

Conflicts:
	app/config/gimpbaseconfig.c
2012-11-13 16:15:49 +01:00
Michael Natterer
7bbd29b182 app: limit the pyhsical memory size by G_MAXSIZE
because one process can't handle more.
(cherry picked from commit 2b714fcb1a)
2012-11-13 16:12:26 +01:00
Michael Natterer
a766aa9730 Bug 677776 - filter popup windows get hidden behind main image window
Apply modified patch from Simone Karin Lehmann which makes sure
script-fu gets properly hidden after the dialog is done.
(cherry picked from commit 83de53ee4d)
2012-11-13 00:49:52 +01:00
Michael Natterer
3291348ac6 Bug 677776 - filter popup windows get hidden behind main image window
Simone found a better way than setting plug-in windows to UTILITY: simply
call the proper API, [NSApp arrangeInFront: nil].
(cherry picked from commit ab801970ca)
2012-11-13 00:48:09 +01:00
Christian Kirbach
606dad32b1 Update German translation 2012-11-12 23:57:33 +01:00
Michael Natterer
f63e5671ae Bug 676940 - Group children prevent droping layer at bottom of stack
...and don't forget to return the drop_path from
gimp_container_tree_view_drop_status().
(cherry picked from commit 3ef2baea67)
2012-11-12 01:31:28 +01:00
Michael Natterer
982d08492f Bug 676940 - Group children prevent droping layer at bottom of stack
Treat dropping on the empty space at the bottom like dropping after
the last toplevel item.
(cherry picked from commit 05e12b88bc)
2012-11-12 01:26:39 +01:00
Michael Natterer
5db271cc52 Bug 680621 - View menu options are discarded after closing an image
Sync GimpDisplayShell's properties with the default values when it's
emptied and turns into the empty display, so the default values used
when filling it with an image are displayed while it's empty.
(cherry picked from commit 54cf6c6e9f)
2012-11-12 01:00:04 +01:00
Michael Natterer
d29f273566 Bug 677776 - filter popup windows get hidden behind main image window
On OSX, set all transient plug-in windows to UTILITY, so they appear
on top of the image window, which is a bad hack. See the comment in
gimp_window_set_transient_for_display().
(cherry picked from commit 018fc32727)
2012-11-11 21:21:35 +01:00
Michael Natterer
908a71c4cf Bug 684003 - When using the main window in secondary monitor...
If gimp_window_set_transient_for() fails (due to platform
restrictions), at least set GTK_WIN_POS_CENTER on the window, so it
gets centered on the monitor where the mouse is. This also removes the
need for OSX specific centering code in GimpDialog (bug 677776).
(cherry picked from commit 9e5ed1e70a)
2012-11-11 21:13:54 +01:00
Piotr Drąg
5860b2e844 Updated Polish translation 2012-11-10 00:14:58 +01:00
Michael Natterer
acc610ec8a app: remove redundant code from the last commit
(cherry picked from commit f71afd245f)
2012-11-10 00:09:37 +01:00
Peter Mráz
4bbdbb102f Updated slovak translation 2012-11-09 23:40:37 +01:00
Michael Natterer
50c1e2d872 Bug 683011 - Text tool discards text attributes in the on-canvas dialog...
When font, size or color were changed, set the text buffer's current
insert_tags just as we already do for the bold, italic etc. toggle
buttons.  Changed gimp_text_style_editor_list_tags() to also return
the tags for font, size or color.
(cherry picked from commit abd2e78bdf)
2012-11-09 23:29:59 +01:00
Michael Natterer
2a77d536aa app: make Tab, Shift+Tab and Escape move the focus back to text editing
when it was in the floating text style editor. While this doesn't fix
anything by itself, it enables fixing text style setting to behave
reasonably when there is no selection.
(cherry picked from commit 76b05c2afc)
2012-11-09 22:15:25 +01:00
Daniel Mustieles
e66252cc8a Updated Spanish translation 2012-11-08 12:38:55 +01:00
Michael Natterer
2873262fcc Bug 687392 - Memory corruption vulnerability when reading XWD files
Applied and enhanced patch from andres which makes file-xwd detect
this kind of file corruption and abort loading with an error message.
(cherry picked from commit 0b35f6a082)
2012-11-08 00:19:17 +01:00
Michael Natterer
f3de4b4a24 Bug 677776 - filter popup windows get hidden behind main image window
On OSX, call [NSApp activateIgnoringOtherApps] when a plug-in dialog
is shown, so the plug-in process becomes the active app, and the
dialog gets focussed.

In order to avoid doing this in GimpDialog (which is also used in
the core), do it in gimp_ui_init() which all interactive plug-ins
call, and when gimp_temp_proc_run() is called interactively, to
catch repeated activation of an already running plug-in.

Also, set GimpDialog's initial position to GTK_WIN_POS_CENTER,
or they will pop up in the top left corner.

Inspired by patches from Simone Karin Lehmann and Daniel Sabo.
(cherry picked from commit 0b56aa0d13)
2012-11-07 23:54:30 +01:00
Michael Natterer
901f396a5e Bug 687851 - Gimp crashes on Colors > Desaturate
Don't install the frame rate limiting draw timeout when resuming a
draw tool that is not active, so accidential timeout installation from
whatever tool dispose code can't happen.
(cherry picked from commit 6a33951aa6)
2012-11-07 23:24:00 +01:00
Michael Natterer
28d42d3dd7 Bug 686521 - Zoom Tool Displays Wrong Cursor When Zooming In/Out
When updating the tool cursor on BUTTON_PRESS, pass a state *without*
the newly pressed button's mask to gimp_display_shell_update_cursor(),
or it will simply never call the cursor update function. Tool cursors
don't normally change when a mouse button is down.
(cherry picked from commit 5de48ef8b5)
2012-11-06 22:49:00 +01:00
Michael Natterer
cfacd4f5a6 Bug 687375 - Text tool: unnecessarily insists on having a layer before working
There is no reason to disallow the text tool from working on a
previously empty image, so allow it.
(cherry picked from commit eba022f01b)
2012-11-06 22:23:36 +01:00
Michael Natterer
9d6e8e23df Bug 687673 - The image has been exported to '(null)' when export...
Show the imported URI if the exported URI is NULL, they are equivalent
for this dialog.
(cherry picked from commit 55f025e469)
2012-11-06 22:15:21 +01:00
Marco Ciampa
0029694f3c Small fix in italian translation. 2012-11-06 10:39:11 +01:00
Marco Ciampa
7e06c48a94 Small fix in italian translation. 2012-11-06 10:28:56 +01:00
Rafael Ferreira
9cf76553bd Updated Brazilian Portuguese Translation 2012-11-05 12:09:10 -02:00
Michael Natterer
b447b8e85f Bug 676667 - Splash image display in splash screen is delayed
Throw away the code that sets the splash image as window background
and always use GtkImage. Due to internal GDK changes since this code
was written, this is now the way to avoid any delay when showing the
image, for whatever reason.
(cherry picked from commit 568aa7a5b0)
2012-11-05 01:49:06 +01:00
Michael Natterer
4f2d0c9ed1 Bug 686850 - Help system: GIMP crashes and closes without saving changes
When gimp_plug_in_close()ing a plug-in (such as when cancel is
clicked), make sure we don't leak the proc_frames of all temporary
procedures the plug-in is currently running. By properly disposing the
GimpPlugInProcFrame, the progress window and its cancel button in
above bug get destroed on first click, and the user has no chance of
trying to kill an already finalized plug-in again.
(cherry picked from commit eac70cc513)
2012-11-05 01:17:01 +01:00
Michael Natterer
3e72a9215e Bug 687561 - Edit/Modules crashes immediately
Don't pass GTK_STOCK_CLOSE as response_id to
gtk_dialog_set_alternative_button_order(), it's GTK_RESPONSE_CLOSE.
(cherry picked from commit d4f85b24b1)
2012-11-04 15:48:41 +01:00
Marco Ciampa
84461fd759 Small fix in italian translation. 2012-11-03 00:12:36 +01:00
Marco Ciampa
8c0fd99d89 Small typo fixes in italian translation. 2012-11-02 20:30:42 +01:00
Michael Natterer
855246391f Bug 677733 - Export image: duplicate list item for TIFF export
Don't mark a procedure as file procedure just because a mime-type or
thumbnail loader is registered for it. Only registering as load or
save handler should set the file_proc flag. This prevents plug-ins
from doing wrong things and would also fix the behavior fixed in the
commits below.
(cherry picked from commit dcaba4f1d1)
2012-11-01 19:26:37 +01:00
Michael Natterer
fde801cb89 Bug 677733 - Export image: duplicate list item for TIFF export
Don't register a mime-type for the alternative file-tiff-save2
procedure, it's not supposed to be registered as file procedure, and
only usable from scripts anyway.
(cherry picked from commit 9615f233ba)
2012-11-01 19:23:10 +01:00