Issue #3852: Error compilation gimpimagecombobox MSYS2.

Seems underscored APIs are not visible on Win32. Anyway even if we fixed
this, this would only be temporary as all these deprecated APIs are only
meant to stay around temporarily, then be actually unavailable.

I hesitated to actually undeprecate the `_gimp_*_is_valid()` (like
making a `gimp_image_is_valid_id()` API for instance) but this is
actually quite similar to just create the GimpImage: if
gimp_image_get_by_id() returns NULL, then the ID was not valid.
This commit is contained in:
Jehan 2019-08-27 15:19:48 +02:00
parent c940ca8f8a
commit e1e048a823
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ gimp_image_combo_box_changed (GimpImageComboBox *combo_box)
if (gimp_int_combo_box_get_active (GIMP_INT_COMBO_BOX (combo_box),
&image_ID))
{
if (! _gimp_image_is_valid (image_ID))
if (! gimp_image_get_by_id (image_ID))
{
GtkTreeModel *model;

View File

@ -576,7 +576,7 @@ gimp_item_combo_box_changed (GimpIntComboBox *combo_box)
if (gimp_int_combo_box_get_active (combo_box, &item_ID))
{
if (item_ID > 0 && ! _gimp_item_is_valid (item_ID))
if (! gimp_item_get_by_id (item_ID))
{
GtkTreeModel *model;
GList *remove = NULL;