Commit Graph

1580 Commits

Author SHA1 Message Date
4dbb1232a8 Do not use g_io_channel_unix_new() for the win32 platforms.
It is advised to use the more accurate g_io_channel_win32_new_fd() or
g_io_channel_win32_new_socket() because GLib can't differentiate between
file descriptors and sockets on Windows, which outputs a warning when
there is ambiguity.

(cherry picked from commit b8aabcac5c)
2016-03-27 00:57:11 +01:00
9b2c6eb8c2 Bug 749406 - Displace segfaults on launch
(cherry picked from commit 90273fb57b)
2015-06-21 18:10:40 +02:00
6faa39a3b2 windows: Call SetDLLDirectory() in the app
With this patch, there should be no more need to set PATH on Windows
before running GIMP.

This patch was tested by me and drawoc, but there could be some
undetected issues lurking. Revert if any problems arise.

(cherry picked from commit 60197c227d)
2015-04-13 15:46:48 +05:30
b812f513d4 Doc that gimp-display-new gives execution error if no GIMP GUI. 2014-05-27 00:58:00 +01:00
bba4343641 Doc NULL return for gimp_display_name() when no GUI. 2014-05-24 18:00:15 +01:00
7136352aec app, libgimp: commit files generated by PDB docs change 2014-05-03 11:02:04 -04:00
57180cd3cc There only *might* be an error string. 2014-05-03 08:38:31 +01:00
ef8603bde8 Document other layer_group-relevant procedures in gimp_layer_group_new. 2014-05-03 00:47:15 +01:00
1f52773120 Document that gimp_run_procedure* on error return a string. 2014-05-03 00:12:58 +01:00
86385cfa28 Bug 706361 - Printer queue dosn't show the filename of the printing image
Change the gimp-image-get-name procedure to return the same string
as shown in the image title, and mention in its API docs that this
string is meant for annotating UI elements only.

(cherry picked from commit fea22c345c)
2014-03-15 17:54:17 +01:00
c6f5c24c36 Bug 725325 - Drag and drop fails for patterns and brushes
The "drag-data-received" signal was connected wrongly

(cherry picked from commit cbce05f92c)
2014-02-27 18:47:51 +01:00
cdb0b5816e Bug 705457 - Export doesn't handle a single top-level layer group
Add special export code for single top-level layers groups, other
cases should be mostly (not perfectly) handled by the export code
for layered images. Also, show the legacy export dialog when the
envorinment variable GIMP_INTERACTIVE_EXPORT is set, so export
changes can actually be tested and verified again.

(cherry picked from commit 8c79a070bb)
2013-11-10 02:05:49 +01:00
adacb2a2a8 app: add an "interactive" boolean inside gimp_export_image()
instead of using "format_name", which is confusing, and file plug-ins
will soon pass their format name again.

(cherry picked from commit 206df00266)
2013-11-10 02:05:36 +01:00
62515d555d libgimp: make GIMP_PLUGIN_DEBUG messages always visible again
by adding "LibGimp" to G_MESSAGES_DEBUG so it doesn't get filtered
away by newer GLib.
(cherry picked from commit e4f24a539e)
2013-02-23 16:12:25 +01:00
76452a01aa Bug 693797 - Sample colorize fails when you choose current gradient as target
Fix my last commit and don't delete items in the foreach() callback,
because it's impossible to delete items in foreach(). Instead, collect
them in a list and remove them after foreach().
(cherry picked from commit c91fbd54ad)
2013-02-17 01:48:18 +01:00
36cf018f8b Bug 693797 - Sample colorize fails when you choose current gradient as target
Based on a patch from Hartmut Kuhse, make sure we don't remove
custom-added items from GimpItemComboBoxes when repopulating it.
(cherry picked from commit 73cb32c36e)
2013-02-15 18:54:36 +01:00
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
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
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
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
19b9ae79da Bug 685445 - color-to-alpha plugin crashes (use-after-free)
gimp_tile_put(): make sure we don't free libgimp's tile data twice in
the non-SHM case. I could never reproduce the bug, but I'm pretty sure
this fixes it. The change in gimpprotocol.c is just cleanup.
(cherry picked from commit 0a5059da51)
2012-10-22 19:05:16 +02:00
e000f106bf Bug 685797 - all python plug-ins are broken after 3b55877a
Remove the privately added GimpItemComboBox class instead, it confuses
the hell out of python. Instead, use g_object_set,get_data() to manage
the newly needed members, and code duplication.
(cherry picked from commit d6cf29e8c4)
2012-10-10 23:13:12 +02:00
3b55877aca Bug 378334 - Plugins with image drop-list crash when image is closed
Let image and item combo boxes connect to their own "changed" signal
first, and if the chosen image/item doesn't exist any longer,
reinitialize the combo box and select the first item instead.

Also fixes the type macros in gimpitemcombobox.h which were lacking a
')' and introduces an internal GimpItemComboBox class to hold the
common functionality.
(cherry picked from commit 4aaaa1a7fa)
2012-10-08 22:06:12 +02:00
b8cd7348cc Bug 678452 - Libgimp drawable combo boxes are not aware of layer groups
Add all a tree's items to the combo boxes. Try to visualize the tree
structure by prepending '-'s, but that could probably need some
suggestions for improvement.
(cherry picked from commit b955205676)
2012-09-03 02:24:28 +02:00
209116fcad Bug 678732 - gimp-image-insert-layer inserts into a wrong place...
Fix the docs, the function does what it's supposed to do.  Passing
"0, -1" actually means "insert where the ui would insert" and is
supposed to be used when e.g. scripts create layers.
(cherry picked from commit e620eb8cef)
2012-08-04 02:21:59 +02:00
0a450f8e22 Bug 680531 - Function gimp-context-get-brush-size takes size argument...
The context getters need PDB @outargs, not @inargs. This "API change"
is OK in stable because the API was totally unusable before this fix.
(cherry picked from commit 01dffdc276)
2012-07-26 16:30:31 +02:00
5b59af7c2e libgimp: don't recurse infinitely in gimp_parasite_detach() 2012-05-03 00:35:03 +02:00
569c122137 libgimp: fix docs of deprecated functions 2012-05-03 00:25:08 +02:00
f32706a0d1 libgimp: don't recurse infinitely in deprecated gimpvectors functions 2012-05-03 00:24:19 +02:00
0025f9f354 fix typo "equalizee" 2012-04-12 01:28:30 +02:00
bd591d73cf libgimp: add gimp_ink_blob_type_get_type() to gimp.def 2012-03-02 12:20:21 +01:00
b952f80be0 Bug 658477 - add PDB support for more paint and ink options
Apply heavily modified patch from Es Swartz which adds PDB API for
brush size, angle and aspect ratio, as well as a full interface for
ink. Changed to patch to add all procedures to the "context" group
instead of creating new PDB groups, properly use the new
GimpPDBContext APIs for paint options, and did some general cleanup.
(Warning, completely untested).
2012-03-01 12:58:26 +01:00
056e09a6cb Remove the makefile.msc build system, it is unmaintained since 2008 2011-12-16 15:53:56 +01:00
921922e95d libgimp: Change comment to point at correct alternate function 2011-12-07 10:31:24 +05:30
ebbad40885 Doc fixes in both source comments and gtk-doc files 2011-11-25 21:39:55 +01:00
e46aee647d libgimp: missed to commit a generated comment change 2011-11-03 22:47:12 +01:00
634cf6d620 pdb: add gimp-dynamics-refresh and gimp-dynamics-get-list 2011-10-31 22:22:19 +01:00
01344f811d pdb: add dynamics accessors to the context procedures 2011-10-31 21:08:12 +01:00
0cb9ffa0ec libgimp: Drop dead assignment 2011-10-12 17:00:26 +05:30
72b0ef397f libgimp: use gtk_box_new() 2011-09-30 10:53:32 +02:00
e071bfa3b6 Bug 656716 - Have a procedure to get a layer from its name
Add gimp_image_get_[layer|channel|vectors]_by_name().
2011-09-24 16:35:59 +02:00
da37e9ff3e Bug 596410 - gimp-image-get-filename returns NULL for imported files
Make gimp_image_get_uri() and gimp_image_get_filename() behave as in
the GIMP 2.6 days. Add new functions gimp_image_get_xcf_uri(),
gimp_image_get_exported_uri() and gimp_image_get_imported_uri().
2011-08-12 21:15:16 +02:00
9c6338900e libgimp*: don't derive from GtkHBox and GtkVBox in libgimp either
I know this is not 100% compatible, but is in fact absolutely safe to
change unless somebody is using the headers in ways that are totally
wrong.
2011-07-27 19:53:34 +02:00
c35ff719a7 app/libgimp*: remove stuff found by -Wunused-but-set-variable 2011-05-01 23:23:19 +02:00
856c89a845 libgimp: add guards that #error out if individual files are included 2011-04-28 19:59:52 +02:00
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
ee03177be8 libgimp: don't include individual files from libgimp* 2011-04-28 14:24:59 +02:00
3d7e51c52f libgimp: #include "libgimpbase/gimpbase.h" instead of individual files 2011-04-28 13:09:30 +02:00
6877a14caf Fix gtk-doc for gimp_layer_new_from_surface() 2011-04-27 20:35:56 +05:30
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