summaryrefslogtreecommitdiff
path: root/gdk-pixbuf
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-04-02 18:54:17 +0000
committerFederico Mena Quintero <federico@src.gnome.org>2000-04-02 18:54:17 +0000
commit24303a9c562e18305a330cdd35527986b3b869c2 (patch)
treefcac4b2e6c4d05cbf87e65cb1a948f7bf1dd2b5a /gdk-pixbuf
parentba616ef73a5affe9a19e00186b6aa3f01ea85528 (diff)
downloadgdk-pixbuf-24303a9c562e18305a330cdd35527986b3b869c2.tar.gz
Reverted Mark's change. The refcount is private information, and the
2000-04-01 Federico Mena Quintero <federico@helixcode.com> * gdk-pixbuf/gdk-pixbuf.c: Reverted Mark's change. The refcount is private information, and the art_pixbuf will go away soon.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r--gdk-pixbuf/gdk-pixbuf.c35
-rw-r--r--gdk-pixbuf/gdk-pixbuf.h3
2 files changed, 1 insertions, 37 deletions
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c
index 65dece8ac..1c7162267 100644
--- a/gdk-pixbuf/gdk-pixbuf.c
+++ b/gdk-pixbuf/gdk-pixbuf.c
@@ -295,40 +295,7 @@ gdk_pixbuf_get_rowstride (GdkPixbuf *pixbuf)
return pixbuf->art_pixbuf->rowstride;
}
-/**
- * gdk_pixbuf_get_ref:
- * @pixbuf: A pixbuf.
- *
- * Gets the refcount of a pixbuf.
- *
- * Return value: The refcount of the @pixbuf argument.
- **/
-gint
-gdk_pixbuf_get_ref (GdkPixbuf *pixbuf)
-{
- g_return_val_if_fail (pixbuf != NULL, -1);
- g_return_val_if_fail (pixbuf->ref_count > 0, -1);
-
- return (pixbuf->ref_count);
-}
-
-/**
- * gdk_pixbuf_get_artpixbuf:
- * @pixbuf: A pixbuf.
- *
- * Queries a pointer to the ArtPixBuf data of a pixbuf.
- *
- * Return value: A pointer to the pixbuf's ArtPixBuf.
- **/
-ArtPixBuf *
-gdk_pixbuf_get_artpixbuf (GdkPixbuf *pixbuf)
-{
- g_return_val_if_fail (pixbuf != NULL, NULL);
- g_assert (pixbuf->art_pixbuf != NULL);
-
- return pixbuf->art_pixbuf;
-}
-
+
/* General initialization hooks */
const guint gdk_pixbuf_major_version=GDK_PIXBUF_MAJOR,
diff --git a/gdk-pixbuf/gdk-pixbuf.h b/gdk-pixbuf/gdk-pixbuf.h
index ff64b7a19..01f2043bf 100644
--- a/gdk-pixbuf/gdk-pixbuf.h
+++ b/gdk-pixbuf/gdk-pixbuf.h
@@ -94,9 +94,6 @@ guchar *gdk_pixbuf_get_pixels (GdkPixbuf *pixbuf);
int gdk_pixbuf_get_width (GdkPixbuf *pixbuf);
int gdk_pixbuf_get_height (GdkPixbuf *pixbuf);
int gdk_pixbuf_get_rowstride (GdkPixbuf *pixbuf);
-gint gdk_pixbuf_get_ref (GdkPixbuf *pixbuf);
-ArtPixBuf *gdk_pixbuf_get_artpixbuf (GdkPixbuf *pixbuf);
-
/* Reference counting */