Re: getting the icon pixbuf for a file
- From: Frank Cox <theatre melvilletheatre com>
- To: gtk-app-devel-list gnome org
- Subject: Re: getting the icon pixbuf for a file
- Date: Thu, 16 Aug 2012 10:06:44 -0600
On Thu, 16 Aug 2012 17:24:02 +0200
Andreas Rönnquist wrote:
Sorry, I mean loading the Pixbuf of the file-type / mime-type of a
file - Not simply loading a file into a pixbuf. That is a bit more
complicated getting...
Do you mean something like this?
GtkWidget *icon;
GdkPixbuf *pixbuf;
pixbuf=gdk_pixbuf_new_from_file_at_scale("filename.png",500,-1,TRUE,NULL);
icon=gtk_image_new_from_pixbuf(pixbuf);
gtk_box_pack_start(GTK_BOX(mainmenuwidgets.action), icon, FALSE, FALSE, 30);
--
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
www.creekfm.com - FIFTY THOUSAND WATTS of POW WOW POWER!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]