# HG changeset patch # User William Pitcock # Date 1184442998 18000 # Node ID 407395e030c7e36ce3b453c9e67e686bf9eef036 # Parent 4b076ad636e63c3e835d74c3c2c7fa7c5ddd9dd5 Use GdkPixbuf to display the credits logo. diff -r 4b076ad636e6 -r 407395e030c7 src/audacious/ui_credits.c --- a/src/audacious/ui_credits.c Sat Jul 14 12:45:03 2007 +0200 +++ b/src/audacious/ui_credits.c Sat Jul 14 14:56:38 2007 -0500 @@ -326,7 +326,7 @@ { static GtkWidget *about_window = NULL; - GdkPixmap *beep_logo_pmap = NULL, *beep_logo_mask = NULL; + GdkPixbuf *logo_pixbuf; GtkWidget *about_vbox; GtkWidget *about_credits_logo_box, *about_credits_logo_frame; GtkWidget *about_credits_logo; @@ -357,10 +357,7 @@ about_vbox = gtk_vbox_new(FALSE, 5); gtk_container_add(GTK_CONTAINER(about_window), about_vbox); - if (!beep_logo_pmap) - beep_logo_pmap = - gdk_pixmap_create_from_xpm_d(about_window->window, - &beep_logo_mask, NULL, audacious_logo_xpm); + logo_pixbuf = gdk_pixbuf_new_from_xpm_data(audacious_logo_xpm); about_credits_logo_box = gtk_hbox_new(TRUE, 0); gtk_box_pack_start(GTK_BOX(about_vbox), about_credits_logo_box, @@ -372,9 +369,10 @@ gtk_box_pack_start(GTK_BOX(about_credits_logo_box), about_credits_logo_frame, FALSE, FALSE, 0); - about_credits_logo = gtk_pixmap_new(beep_logo_pmap, beep_logo_mask); + about_credits_logo = gtk_image_new_from_pixbuf(logo_pixbuf); gtk_container_add(GTK_CONTAINER(about_credits_logo_frame), about_credits_logo); + g_object_unref(logo_pixbuf); label = gtk_label_new(NULL); text = g_strdup_printf(_(bmp_brief), VERSION);