# HG changeset patch # User Cristi Magherusan # Date 1201439703 -7200 # Node ID 6028b7fff0bd48abe23ab78bffe9f08f6bd314bf # Parent 41655c090c534c7a03832ae78bdc3e7b97cd9f92 removed some unused GdkPixmap stuff diff -r 41655c090c53 -r 6028b7fff0bd src/audacious/util.c --- 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); diff -r 41655c090c53 -r 6028b7fff0bd src/audacious/util.h --- 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,