[gtk+/wip/baedert/drawing: 37/50] image: Fold gtk_image_reset into only caller



commit 5c44925846a01cd9d3b6926b0bd864104ee6a359
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 27bab54..d61e0bd 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,
@@ -1442,8 +1441,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;
@@ -1479,20 +1486,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]