summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-11-15 18:42:12 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-11-15 18:42:12 +0000
commit66cec03401d6cfddab5b1859013b8303cd8c4d41 (patch)
tree52f8c8a412d9f5b2773ef55d47f5755c9094d13e /modules
parent7e7e4cbb6e050bd876953339cee2484cd6925a80 (diff)
downloadgdk-pixbuf-66cec03401d6cfddab5b1859013b8303cd8c4d41.tar.gz
Remove uses of deprecated symbols.
2004-11-15 Matthias Clasen <mclasen@redhat.com> * pixbuf-render.c: * pixbuf-draw.c: * pixbuf-rc-style.c: Remove uses of deprecated symbols.
Diffstat (limited to 'modules')
-rw-r--r--modules/engines/pixbuf/ChangeLog6
-rw-r--r--modules/engines/pixbuf/pixbuf-draw.c12
-rw-r--r--modules/engines/pixbuf/pixbuf-rc-style.c2
-rw-r--r--modules/engines/pixbuf/pixbuf-render.c8
4 files changed, 16 insertions, 12 deletions
diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog
index 20cf1078b..76524a96b 100644
--- a/modules/engines/pixbuf/ChangeLog
+++ b/modules/engines/pixbuf/ChangeLog
@@ -1,3 +1,9 @@
+2004-11-15 Matthias Clasen <mclasen@redhat.com>
+
+ * pixbuf-render.c:
+ * pixbuf-draw.c:
+ * pixbuf-rc-style.c: Remove uses of deprecated symbols.
+
Thu Mar 18 10:07:15 2004 Owen Taylor <otaylor@redhat.com>
* pixbuf-draw.c (match_theme_image): Fix ./-> typo.
diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c
index f3eb17d35..cababbe38 100644
--- a/modules/engines/pixbuf/pixbuf-draw.c
+++ b/modules/engines/pixbuf/pixbuf-draw.c
@@ -103,14 +103,14 @@ draw_simple_image(GtkStyle *style,
if ((width == -1) && (height == -1))
{
- gdk_window_get_size(window, &width, &height);
+ gdk_drawable_get_size(window, &width, &height);
if (allow_setbg)
setbg = TRUE;
}
else if (width == -1)
- gdk_window_get_size(window, &width, NULL);
+ gdk_drawable_get_size(window, &width, NULL);
else if (height == -1)
- gdk_window_get_size(window, NULL, &height);
+ gdk_drawable_get_size(window, NULL, &height);
if (!(match_data->flags & THEME_MATCH_ORIENTATION))
{
@@ -166,13 +166,13 @@ draw_gap_image(GtkStyle *style,
if ((width == -1) && (height == -1))
{
- gdk_window_get_size(window, &width, &height);
+ gdk_drawable_get_size(window, &width, &height);
setbg = TRUE;
}
else if (width == -1)
- gdk_window_get_size(window, &width, NULL);
+ gdk_drawable_get_size(window, &width, NULL);
else if (height == -1)
- gdk_window_get_size(window, NULL, &height);
+ gdk_drawable_get_size(window, NULL, &height);
if (!(match_data->flags & THEME_MATCH_ORIENTATION))
{
diff --git a/modules/engines/pixbuf/pixbuf-rc-style.c b/modules/engines/pixbuf/pixbuf-rc-style.c
index 22f394145..e90cee19e 100644
--- a/modules/engines/pixbuf/pixbuf-rc-style.c
+++ b/modules/engines/pixbuf/pixbuf-rc-style.c
@@ -723,12 +723,10 @@ pixbuf_rc_style_parse (GtkRcStyle *rc_style,
if (!g_scanner_lookup_symbol(scanner, theme_symbols[0].name))
{
- g_scanner_freeze_symbol_table(scanner);
for (i = 0; i < G_N_ELEMENTS (theme_symbols); i++)
g_scanner_scope_add_symbol(scanner, scope_id,
theme_symbols[i].name,
GINT_TO_POINTER(theme_symbols[i].token));
- g_scanner_thaw_symbol_table(scanner);
}
/* We're ready to go, now parse the top level */
diff --git a/modules/engines/pixbuf/pixbuf-render.c b/modules/engines/pixbuf/pixbuf-render.c
index c449da373..08baf939b 100644
--- a/modules/engines/pixbuf/pixbuf-render.c
+++ b/modules/engines/pixbuf/pixbuf-render.c
@@ -409,7 +409,7 @@ pixbuf_render (GdkPixbuf *src,
x_scale, y_scale,
GDK_INTERP_BILINEAR);
- gdk_pixbuf_unref (partial_src);
+ g_object_unref (partial_src);
x_offset = 0;
y_offset = 0;
@@ -431,7 +431,7 @@ pixbuf_render (GdkPixbuf *src,
GDK_PIXBUF_ALPHA_FULL, 128,
GDK_RGB_DITHER_NORMAL,
0, 0);
- gdk_pixbuf_unref (tmp_pixbuf);
+ g_object_unref (tmp_pixbuf);
}
ThemePixbuf *
@@ -661,7 +661,7 @@ theme_pixbuf_get_pixbuf (ThemePixbuf *theme_pb)
{
if (!pixbuf_cache)
pixbuf_cache = g_cache_new ((GCacheNewFunc)pixbuf_cache_value_new,
- (GCacheDestroyFunc)gdk_pixbuf_unref,
+ (GCacheDestroyFunc)g_object_unref,
(GCacheDupFunc)g_strdup,
(GCacheDestroyFunc)g_free,
g_str_hash, g_direct_hash, g_str_equal);
@@ -797,7 +797,7 @@ theme_pixbuf_render (ThemePixbuf *theme_pb,
gdk_draw_rectangle (window, tmp_gc, TRUE, x, y, width, height);
gdk_gc_unref (tmp_gc);
- gdk_pixmap_unref (tmp_pixmap);
+ g_object_unref (tmp_pixmap);
}
}
}