Image—Notify when :storage-type changes from EMPTY
authorDaniel Boles <dboles.src@gmail.com>
Thu, 6 Jul 2023 22:03:20 +0000 (23:03 +0100)
committerDaniel Boles <dboles.src@gmail.com>
Thu, 6 Jul 2023 22:08:20 +0000 (23:08 +0100)
commit41237509add076da22172c51e4ccc35df5e7d798
treeb19888c6776681f932a5ac47b97ef1ed696675fe
parent576e8a20902b78c4c5c33dc3700706fc5d091696
Image—Notify when :storage-type changes from EMPTY

PROP_STORAGE_TYPE was only notified if it was changing *to* EMPTY, in
gtk_image_clear_internal(). We did not notify when it changes *from*
EMPTY to something non-empty. We should as not doing so is confusing,
e.g. if a user wants to bind :storage-type to :visible if non-empty,
which I just did! So, in functions that apply an ImageType, now notify.

Also do so in gtk_image_set_from_definition, declared in imageprivate.h,
even though none of the function there are currently used anywhere.
(Should they be removed?)
gtk/gtkimage.c