diff options
author | Owen Taylor <otaylor@redhat.com> | 2001-08-25 03:15:26 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2001-08-25 03:15:26 +0000 |
commit | 8de6598f6a45a2df6cba482955c92b422db404dc (patch) | |
tree | b6d6e36c2c7ca8e922250728fbfccbc80f222723 /gtk/gtkimage.c | |
parent | 5600b79e5ccc1aad73e273802a33fbc7c43538af (diff) | |
download | gtk+-8de6598f6a45a2df6cba482955c92b422db404dc.tar.gz |
Break compatibility and make gtk_image_new() take no arguments. The
Fri Aug 24 23:09:05 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkimage.[ch] docs/Changes-2.0.txt: Break compatibility
and make gtk_image_new() take no arguments. The compiler will
catch it, and it is vastly more useful than having
gtk_image_new() be a deprecated alias for gtk_image_new_from_image().
* gtk/gtkmenu.c (gtk_menu_set_property): Apply patch
to add tearoff-title property (#51319, Lee Mallabone)
Diffstat (limited to 'gtk/gtkimage.c')
-rw-r--r-- | gtk/gtkimage.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index dd01873b75..509d569c52 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -776,19 +776,18 @@ gtk_image_get_animation (GtkImage *image) return image->data.anim.anim; } +/** + * gtk_image_new: + * @void: a #GtkImage + * + * Creates a new empty #GtkImage widget. + * + * Return value: a newly created #GtkImage widget. + **/ GtkWidget* -gtk_image_new (GdkImage *val, - GdkBitmap *mask) +gtk_image_new (void) { - GtkImage *image; - - g_return_val_if_fail (val != NULL, NULL); - - image = gtk_type_new (GTK_TYPE_IMAGE); - - gtk_image_set (image, val, mask); - - return GTK_WIDGET (image); + return g_object_new (GTK_TYPE_IMAGE, NULL); } void |