image: Fold gtk_image_reset into only caller

This commit is contained in:
Timm Bäder 2017-06-14 18:30:19 +02:00 committed by Matthias Clasen
parent 360b075164
commit 225306a21e

View File

@ -155,7 +155,6 @@ static void gtk_image_measure (GtkWidget *widget,
static void gtk_image_style_updated (GtkWidget *widget);
static void gtk_image_finalize (GObject *object);
static void gtk_image_reset (GtkImage *image);
static void gtk_image_set_property (GObject *object,
guint prop_id,
@ -1480,8 +1479,16 @@ gtk_image_set_from_definition (GtkImage *image,
g_object_thaw_notify (G_OBJECT (image));
}
static void
gtk_image_reset (GtkImage *image)
/**
* gtk_image_clear:
* @image: a #GtkImage
*
* Resets the image to be empty.
*
* Since: 2.8
*/
void
gtk_image_clear (GtkImage *image)
{
GtkImagePrivate *priv = image->priv;
GtkImageType storage_type;
@ -1517,20 +1524,6 @@ gtk_image_reset (GtkImage *image)
g_object_thaw_notify (G_OBJECT (image));
}
/**
* gtk_image_clear:
* @image: a #GtkImage
*
* Resets the image to be empty.
*
* Since: 2.8
*/
void
gtk_image_clear (GtkImage *image)
{
gtk_image_reset (image);
}
static void
gtk_image_measure (GtkWidget *widget,
GtkOrientation orientation,