[Gtk-sharp-list] Glade Resource

Rafael Teixeira monoman at gmail.com
Wed Jul 6 12:04:43 EDT 2005


AFAIK, you currently can't as we glade-sharp mostly wraps libglade
that knows nothing about resources.

I think we have to paths to extend glade-sharp to deal with that.

-- The longer path is to reimplement libglade in managed code making
it fully aware of resources
-- The shorter path is to change the xml loading/autoconnect logic in
glade-sharp to look at widget properties and extract resources to
files as needed before delving into native libglade code

Any takers?

On 7/2/05, underdog10 at netcourrier.com <underdog10 at netcourrier.com> wrote:
> Hello,
> 
> I am trying to create a toolbar using glade with my own icon.
> By default Glade is looking for file.
> I would like to load it from resources.
> 
> I can set the window icon
> window1.Icon = Gdk.Pixbuf.LoadFromResource ("test.png");
> 
> How can i specify a Toolbutton or Button icon to load from resources if the toolbar and button are created from glade?
> 
> Thanks
> 
> -------------------------------------------------------------
> NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar...
> Web/Wap : www.netcourrier.com
> Téléphone/Fax : 08 92 69 00 21 (0,34 € TTC/min)
> Minitel: 3615 NETCOURRIER (0,16 € TTC/min)
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 


-- 
Rafael "Monoman" Teixeira
---------------------------------------
I'm trying to become a "Rosh Gadol" before my own eyes. 
See http://www.joelonsoftware.com/items/2004/12/06.html for enlightment.
It hurts!


More information about the Gtk-sharp-list mailing list