Use a pixbuf for widgets used for icons.

svn path=/trunk/; revision=37942
This commit is contained in:
Michael Tüxen 2011-07-08 18:29:02 +00:00
parent 33a21986f1
commit 8e93cf895f
1 changed files with 5 additions and 3 deletions

View File

@ -582,10 +582,12 @@ GtkWidget *xpm_to_widget_from_parent(GtkWidget *parent, const char ** xpm) {
}
/* convert an xpm to a GtkWidget, using the top_level window settings */
/* (be sure that the top_level window is already being displayed) */
/* convert an xpm to a GtkWidget */
GtkWidget *xpm_to_widget(const char ** xpm) {
return xpm_to_widget_from_parent(top_level, xpm);
GdkPixbuf *pixbuf;
pixbuf = gdk_pixbuf_new_from_xpm_data(xpm);
return gtk_image_new_from_pixbuf(pixbuf);
}
/* Convert an pixbuf data to a GtkWidget */