diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-06-19 02:02:09 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-06-19 02:02:09 +0000 |
commit | 58a30d5f5ab308e0a20abfdebcdff5cb5b90eba3 (patch) | |
tree | e6b6dc96c552367905adf65048df990d7d68811f /gtk/gtkimage.c | |
parent | 6db99a9b8f0eb572ebef2b382c3d29d25fec5626 (diff) | |
download | gtk+-58a30d5f5ab308e0a20abfdebcdff5cb5b90eba3.tar.gz |
Make this function public. (#64792, Havoc Pennington)
2005-06-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
* gtk/gtkimage.h:
* gtk/gtkimage.c (gtk_image_clear): Make this function
public. (#64792, Havoc Pennington)
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r-- | gtk/gtkimage.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 834c328676..40f196f29e 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -65,7 +65,6 @@ static void gtk_image_style_set (GtkWidget *widget, static void gtk_image_screen_changed (GtkWidget *widget, GdkScreen *prev_screen); static void gtk_image_destroy (GtkObject *object); -static void gtk_image_clear (GtkImage *image); static void gtk_image_reset (GtkImage *image); static void gtk_image_calc_size (GtkImage *image); @@ -1839,10 +1838,22 @@ gtk_image_expose (GtkWidget *widget, return FALSE; } -static void +/** + * gtk_image_clear: + * @image: a #GtkImage + * + * Resets the image to be empty. + * + * Since: 2.8 + */ +void gtk_image_clear (GtkImage *image) { - GtkImagePrivate *priv = GTK_IMAGE_GET_PRIVATE (image); + GtkImagePrivate *priv; + + g_return_if_fail (GTK_IS_IMAGE (image)); + + priv = GTK_IMAGE_GET_PRIVATE (image); g_object_freeze_notify (G_OBJECT (image)); |