changeset 4215:6028b7fff0bd

removed some unused GdkPixmap stuff
author Cristi Magherusan <majeru@atheme.org>
date Sun, 27 Jan 2008 15:15:03 +0200
parents 41655c090c53
children 75d99359357b
files src/audacious/util.c src/audacious/util.h
diffstat 2 files changed, 0 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/util.c	Wed Jan 23 01:12:08 2008 +0200
+++ b/src/audacious/util.c	Sun Jan 27 15:15:03 2008 +0200
@@ -861,34 +861,6 @@
     return dialog;
 }
 
-/*
- * Resizes a GDK pixmap.
- */
-GdkPixmap *audacious_pixmap_resize(GdkWindow *src, GdkGC *src_gc, GdkPixmap *in, gint width, gint height)
-{
-    GdkPixmap *out;
-    gint owidth, oheight;
-
-    g_return_val_if_fail(src != NULL, NULL);
-    g_return_val_if_fail(src_gc != NULL, NULL);
-    g_return_val_if_fail(in != NULL, NULL);
-    g_return_val_if_fail(width > 0 && height > 0, NULL);
-
-    gdk_drawable_get_size(in, &owidth, &oheight);
-
-    if (oheight == height && owidth == width)
-        return NULL;
-
-    out = gdk_pixmap_new(src, width, height, -1);
-
-    gdk_draw_rectangle(out, src_gc, TRUE, 0, 0, width, height);
-
-    gdk_window_copy_area(out, src_gc, 0, 0, in, 0, 0, owidth, oheight);
-    g_object_unref(src);
-
-    return out;
-}
-
 void ui_skinned_widget_draw(GtkWidget *widget, GdkPixbuf *obj, gint width, gint height, gboolean scale) {
     g_return_if_fail(widget != NULL);
     g_return_if_fail(obj != NULL);
--- a/src/audacious/util.h	Wed Jan 23 01:12:08 2008 +0200
+++ b/src/audacious/util.h	Sun Jan 27 15:15:03 2008 +0200
@@ -88,9 +88,6 @@
     gint y;
 } MenuPos;
 
-
-GdkPixmap *audacious_pixmap_resize(GdkWindow *src, GdkGC *src_gc, GdkPixmap *in, gint width, gint height);
-
 GtkWidget *util_info_dialog(const gchar * title, const gchar * text,
                             const gchar * button_text, gboolean modal,
                             GCallback button_action,