[Gtk-sharp-list] Again: Associated Icon File

Luciano Callero lnc19 at hotmail.com
Sat Dec 9 05:53:54 EST 2006


Thanks. i will try it.




>From: "Eskil Bylund" <eskil.bylund at gmail.com>
>To: gtk-sharp-list at lists.ximian.com
>Subject: [Gtk-sharp-list]  Again: Associated Icon File
>Date: Sat, 9 Dec 2006 04:13:57 +0100
>MIME-Version: 1.0
>Received: from lists.ximian.com ([130.57.169.22]) by 
>bay0-mc3-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Fri, 8 
>Dec 2006 19:14:08 -0800
>Received: from galactus.ximian.com (localhost.localdomain [127.0.0.1])by 
>lists.ximian.com (Postfix) with ESMTP id 043031CFB59;Fri,  8 Dec 2006 
>23:18:55 -0500 (EST)
>Received: from herald.ximian.com (frontgate.ximian.com [130.57.169.19])by 
>lists.ximian.com (Postfix) with ESMTP id 8EF571CFB26for 
><gtk-sharp-list at lists.ximian.com>;Fri,  8 Dec 2006 23:18:53 -0500 (EST)
>Received: by herald.ximian.com (Postfix, from userid 2601)id 7B4AB70056; 
>Fri,  8 Dec 2006 22:14:03 -0500 (EST)
>Received: from nf-out-0910.google.com (nf-out-0910.google.com 
>[64.233.182.189])by herald.ximian.com (Postfix) with ESMTP id A72FB7003Efor 
><gtk-sharp-list at lists.ximian.com>;Fri,  8 Dec 2006 22:14:00 -0500 (EST)
>Received: by nf-out-0910.google.com with SMTP id a27so1332453nfcfor 
><gtk-sharp-list at lists.ximian.com>;Fri, 08 Dec 2006 19:13:57 -0800 (PST)
>Received: by 10.78.201.2 with SMTP id y2mr1794707huf.1165634037313;Fri, 08 
>Dec 2006 19:13:57 -0800 (PST)
>Received: by 10.78.141.11 with HTTP; Fri, 8 Dec 2006 19:13:57 -0800 (PST)
>X-Message-Info: txF49lGdW43zGmLcsvAEaVSYGcv/xJ95Dq8/mUfQl8I=
>X-Original-To: gtk-sharp-list at lists.ximian.com
>Delivered-To: gtk-sharp-list at lists.ximian.com
>X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on 
>frontgate.ximian.com
>X-Spam-Level: *
>X-Spam-Status: No, score=1.8 required=5.0 tests=MY_OBFUT, MY_OBFUX, 
>RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS version=3.0.3
>X-BeenThere: gtk-sharp-list at lists.ximian.com
>X-Mailman-Version: 2.1.8
>Precedence: list
>List-Id: "Discussion of the .Net bindings for 
>Gnome"<gtk-sharp-list.lists.ximian.com>
>List-Unsubscribe: 
><http://lists.ximian.com/mailman/listinfo/gtk-sharp-list>,<mailto:gtk-sharp-list-request at lists.ximian.com?subject=unsubscribe>
>List-Archive: <http://lists.ximian.com/pipermail/gtk-sharp-list>
>List-Post: <mailto:gtk-sharp-list at lists.ximian.com>
>List-Help: <mailto:gtk-sharp-list-request at lists.ximian.com?subject=help>
>List-Subscribe: 
><http://lists.ximian.com/mailman/listinfo/gtk-sharp-list>,<mailto:gtk-sharp-list-request at lists.ximian.com?subject=subscribe>
>Errors-To: gtk-sharp-list-bounces at lists.ximian.com
>Return-Path: gtk-sharp-list-bounces at lists.ximian.com
>X-OriginalArrivalTime: 09 Dec 2006 03:14:08.0375 (UTC) 
>FILETIME=[1728B870:01C71B40]
>
>Hi Luciano,
>
>You can use the methods from Gnome.Vfs. For example:
>
>// A new pixbuf might be created for every call, so remember to keep a
>reference to the returned pixbuf.
>public static Gdk.Pixbuf GetIcon(string filename, int size)
>{
>	string mimeType = Gnome.Vfs.Mime.TypeFromName(filename);
>
>	Gnome.IconLookupResultFlags result;
>	string iconName = Gnome.Icon.Lookup(IconTheme.Default, null, null,
>		null, null, mimeType, Gnome.IconLookupFlags.None, out result);
>
>	if (IconTheme.Default.HasIcon(iconName))
>	{
>		return IconTheme.Default.LoadIcon(iconName, size,
>			IconLookupFlags.UseBuiltin);
>	}
>	return null;
>}
>
>Eskil
>_______________________________________________
>Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

_________________________________________________________________
Latinos en EE.UU: noticias y artículos de interés para ti 
http://latino.msn.com/noticias/latinoseneeuu



More information about the Gtk-sharp-list mailing list