[Gtk-sharp-list] Glade# Pixmap Resource

Rafael Teixeira Rafael Teixeira <monoman@gmail.com>
Sat, 19 Feb 2005 11:29:46 -0200


I didn't look if glade# mostly wraps libglade. If so I would first
rewrite glade#, in fully managed code (it seems easy) so to redefine
the xml to contain new semantics and representations for embedded
resources. That kind of thing cannot be added in libglade as it is
CLI-specific. That would put Glade# (we probably would need a new
name) between what we have in WinForms and the XAML future.

The main cost would be to have a new designer for working with the xml
and embbedding support, but we need it for MonoDevelop and for Windows
development already.

Just some rough ideas... 

The ball is rolling, let's discuss.

Fun,

On Fri, 18 Feb 2005 19:56:23 -0800, Samuel Kaufman <emrysk@gmail.com> wrote:
> Do you happen to know of other bindings or anything in libglade or Gtk+
> that deal with embedded resources?  Something I could look at as an
> example of how similar functionality could be added to Glade#?
> 
> The most straightforward solution that comes to mind would be parsing
> the XML and stripping out all GtkImages that reference filenames
> identical to embedded resource filenames, and then having Glade# set the
> pixbuf, later.  That seems way too complex, though.  There must be a
> better way.
> 
> On Fri, 2005-02-18 at 15:57 -0200, Rafael Teixeira wrote:
> > AFAIK, No.
> >
> > Normally is a one-liner to do things programatically, but I would love
> > to have Glade# extended to deal with embedded resources.
> >
> >
> > On Tue, 15 Feb 2005 22:56:12 +0000, Samuel Kaufman <emrysk@gmail.com> wrote:
> > > My project has a PNG embedded as a resource in the executable assembly.
> > > I'm trying to use that PNG on a window in a Glade# project, where
> > > gui.glade is also a resource in the assembly.  It doesn't look like
> > > Glade.XML is managing to find the the PNG on it's own.  How can I get it
> > > to find this pixmap?  Is there a clean way to do it without using code
> > > to manually drop the pixmap onto the window?
> > >  [ snip ]
> >
> 
> 
> 


-- 
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.