[gtk+] image: Fold gtk_image_reset into only caller



commit 225306a21e44e67089cf79680c97c3f0a9a9beba
Author: Timm Bäder <mail baedert org>
Date:   Wed Jun 14 18:30:19 2017 +0200

    image: Fold gtk_image_reset into only caller

 gtk/gtkimage.c |   27 ++++++++++-----------------
 1 files changed, 10 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index b2c3590..355359e 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]