summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-09-19 21:00:52 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-09-19 21:00:52 +0000
commit944334da7f0d71f4879362d80be91b4a58c1f416 (patch)
tree4c469a67711bc383be4a782b356ecc7803fbb042
parent3f5ad7890fa10ec4811e9e1add99e131f1728524 (diff)
downloadgtk+-944334da7f0d71f4879362d80be91b4a58c1f416.tar.gz
Remove the _-prefix from gdk_pixbuf_set_option and
gdk_pixbuf_non_anim_new again.
-rw-r--r--gdk-pixbuf/ChangeLog5
-rw-r--r--gdk-pixbuf/gdk-pixbuf-animation.c4
-rw-r--r--gdk-pixbuf/gdk-pixbuf-loader.c4
-rw-r--r--gdk-pixbuf/gdk-pixbuf-private.h4
-rw-r--r--gdk-pixbuf/gdk-pixbuf.c4
-rw-r--r--gdk-pixbuf/io-ani.c8
-rw-r--r--gdk-pixbuf/io-ico.c4
-rw-r--r--gdk-pixbuf/io-png.c4
-rw-r--r--gdk-pixbuf/io-xbm.c4
-rw-r--r--gdk-pixbuf/io-xpm.c4
10 files changed, 25 insertions, 20 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog
index b762c2c039..0064dbb4be 100644
--- a/gdk-pixbuf/ChangeLog
+++ b/gdk-pixbuf/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-19 Matthias Clasen <maclas@gmx.de>
+
+ * Revert the previous change; the symbols need to be exported
+ to be usable from dlopened modules.
+
2002-09-18 Matthias Clasen <maclas@gmx.de>
* io-xpm.c, io-xbm.c, io-ico.c, io-ani.c, io-png.c,
diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c
index a492c90a8d..4185eba91d 100644
--- a/gdk-pixbuf/gdk-pixbuf-animation.c
+++ b/gdk-pixbuf/gdk-pixbuf-animation.c
@@ -199,7 +199,7 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
if (pixbuf == NULL)
return NULL;
- animation = _gdk_pixbuf_non_anim_new (pixbuf);
+ animation = gdk_pixbuf_non_anim_new (pixbuf);
g_object_unref (pixbuf);
} else {
@@ -613,7 +613,7 @@ gdk_pixbuf_non_anim_finalize (GObject *object)
}
GdkPixbufAnimation*
-_gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf)
+gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf)
{
GdkPixbufNonAnim *non_anim;
diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c
index 78c8d83ca9..bcb7382e32 100644
--- a/gdk-pixbuf/gdk-pixbuf-loader.c
+++ b/gdk-pixbuf/gdk-pixbuf-loader.c
@@ -257,7 +257,7 @@ gdk_pixbuf_loader_prepare (GdkPixbuf *pixbuf,
if (anim)
g_object_ref (anim);
else
- anim = _gdk_pixbuf_non_anim_new (pixbuf);
+ anim = gdk_pixbuf_non_anim_new (pixbuf);
priv->animation = anim;
@@ -627,7 +627,7 @@ gdk_pixbuf_loader_close (GdkPixbufLoader *loader,
g_object_ref (tmp);
pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, tmp->has_alpha, 8, priv->width, priv->height);
g_object_unref (priv->animation);
- priv->animation = _gdk_pixbuf_non_anim_new (pixbuf);
+ priv->animation = gdk_pixbuf_non_anim_new (pixbuf);
g_signal_emit (loader, pixbuf_loader_signals[AREA_PREPARED], 0);
gdk_pixbuf_scale (tmp, pixbuf, 0, 0, priv->width, priv->height, 0, 0,
(double) priv->width / tmp->width,
diff --git a/gdk-pixbuf/gdk-pixbuf-private.h b/gdk-pixbuf/gdk-pixbuf-private.h
index d75ff23826..db13af8058 100644
--- a/gdk-pixbuf/gdk-pixbuf-private.h
+++ b/gdk-pixbuf/gdk-pixbuf-private.h
@@ -129,13 +129,13 @@ struct _GdkPixbufAnimationIterClass {
};
-GdkPixbufAnimation* _gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf);
+GdkPixbufAnimation* gdk_pixbuf_non_anim_new (GdkPixbuf *pixbuf);
/* key/value pairs that can be attached by the pixbuf loader */
-gboolean _gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
+gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
const gchar *key,
const gchar *value);
diff --git a/gdk-pixbuf/gdk-pixbuf.c b/gdk-pixbuf/gdk-pixbuf.c
index d286aa3485..43d93133cc 100644
--- a/gdk-pixbuf/gdk-pixbuf.c
+++ b/gdk-pixbuf/gdk-pixbuf.c
@@ -525,7 +525,7 @@ gdk_pixbuf_get_option (GdkPixbuf *pixbuf,
}
/**
- * _gdk_pixbuf_set_option:
+ * gdk_pixbuf_set_option:
* @pixbuf: a #GdkPixbuf
* @key: a nul-terminated string.
* @value: a nul-terminated string.
@@ -537,7 +537,7 @@ gdk_pixbuf_get_option (GdkPixbuf *pixbuf,
* Return value: %TRUE on success.
**/
gboolean
-_gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
+gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
const gchar *key,
const gchar *value)
{
diff --git a/gdk-pixbuf/io-ani.c b/gdk-pixbuf/io-ani.c
index 4ff22bdf7b..cc47901371 100644
--- a/gdk-pixbuf/io-ani.c
+++ b/gdk-pixbuf/io-ani.c
@@ -154,10 +154,10 @@ prepared_callback (GdkPixbufLoader *loader,
context->animation->height = gdk_pixbuf_get_height (pixbuf);
if (context->title != NULL)
- _gdk_pixbuf_set_option (pixbuf, "Title", context->title);
+ gdk_pixbuf_set_option (pixbuf, "Title", context->title);
if (context->author != NULL)
- _gdk_pixbuf_set_option (pixbuf, "Author", context->author);
+ gdk_pixbuf_set_option (pixbuf, "Author", context->author);
g_object_ref (pixbuf);
context->animation->pixbufs[context->pos] = pixbuf;
@@ -447,7 +447,7 @@ ani_load_chunk (AniLoaderContext *context, GError **error)
g_print ("INAM %s\n", context->title);
#endif
for (i = 0; i < context->pos; i++)
- _gdk_pixbuf_set_option (context->animation->pixbufs[i], "Title", context->title);
+ gdk_pixbuf_set_option (context->animation->pixbufs[i], "Title", context->title);
}
else if (context->chunk_id == TAG_IART)
{
@@ -466,7 +466,7 @@ ani_load_chunk (AniLoaderContext *context, GError **error)
g_print ("IART %s\n", context->author);
#endif
for (i = 0; i < context->pos; i++)
- _gdk_pixbuf_set_option (context->animation->pixbufs[i], "Author", context->author);
+ gdk_pixbuf_set_option (context->animation->pixbufs[i], "Author", context->author);
}
#ifdef DEBUG_ANI
diff --git a/gdk-pixbuf/io-ico.c b/gdk-pixbuf/io-ico.c
index fc456ab488..cb291dd13f 100644
--- a/gdk-pixbuf/io-ico.c
+++ b/gdk-pixbuf/io-ico.c
@@ -420,9 +420,9 @@ static void DecodeHeader(guchar *Data, gint Bytes,
if (State->cursor) {
gchar hot[10];
g_snprintf (hot, 10, "%d", State->x_hot);
- _gdk_pixbuf_set_option (State->pixbuf, "x_hot", hot);
+ gdk_pixbuf_set_option (State->pixbuf, "x_hot", hot);
g_snprintf (hot, 10, "%d", State->y_hot);
- _gdk_pixbuf_set_option (State->pixbuf, "y_hot", hot);
+ gdk_pixbuf_set_option (State->pixbuf, "y_hot", hot);
}
if (State->prepared_func != NULL)
diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c
index a00e8a677c..3b2317efda 100644
--- a/gdk-pixbuf/io-png.c
+++ b/gdk-pixbuf/io-png.c
@@ -317,7 +317,7 @@ gdk_pixbuf__png_image_load (FILE *f, GError **error)
if (png_get_text (png_ptr, info_ptr, &text_ptr, &num_texts)) {
for (i = 0; i < num_texts; i++) {
png_text_to_pixbuf_option (text_ptr[i], &key, &value);
- _gdk_pixbuf_set_option (pixbuf, key, value);
+ gdk_pixbuf_set_option (pixbuf, key, value);
g_free (key);
g_free (value);
}
@@ -616,7 +616,7 @@ png_info_callback (png_structp png_read_ptr,
if (png_text_to_pixbuf_option (png_text_ptr[i],
&key, &value)) {
- _gdk_pixbuf_set_option (lc->pixbuf, key, value);
+ gdk_pixbuf_set_option (lc->pixbuf, key, value);
g_free (key);
g_free (value);
}
diff --git a/gdk-pixbuf/io-xbm.c b/gdk-pixbuf/io-xbm.c
index 9389516706..0ec63755be 100644
--- a/gdk-pixbuf/io-xbm.c
+++ b/gdk-pixbuf/io-xbm.c
@@ -298,9 +298,9 @@ gdk_pixbuf__xbm_image_load_real (FILE *f, XBMData *context, GError **error)
if (x_hot != -1 && y_hot != -1) {
gchar hot[10];
g_snprintf (hot, 10, "%d", x_hot);
- _gdk_pixbuf_set_option (pixbuf, "x_hot", hot);
+ gdk_pixbuf_set_option (pixbuf, "x_hot", hot);
g_snprintf (hot, 10, "%d", y_hot);
- _gdk_pixbuf_set_option (pixbuf, "y_hot", hot);
+ gdk_pixbuf_set_option (pixbuf, "y_hot", hot);
}
pixels = gdk_pixbuf_get_pixels (pixbuf);
diff --git a/gdk-pixbuf/io-xpm.c b/gdk-pixbuf/io-xpm.c
index c28192d918..fff93f91c5 100644
--- a/gdk-pixbuf/io-xpm.c
+++ b/gdk-pixbuf/io-xpm.c
@@ -1358,9 +1358,9 @@ pixbuf_create_from_xpm (const gchar * (*get_buf) (enum buf_op op, gpointer handl
if (items == 6) {
gchar hot[10];
g_snprintf (hot, 10, "%d", x_hot);
- _gdk_pixbuf_set_option (pixbuf, "x_hot", hot);
+ gdk_pixbuf_set_option (pixbuf, "x_hot", hot);
g_snprintf (hot, 10, "%d", y_hot);
- _gdk_pixbuf_set_option (pixbuf, "y_hot", hot);
+ gdk_pixbuf_set_option (pixbuf, "y_hot", hot);
}