[Glade-users] Glade3: gnomeapp / custom pixmaps for toolbar items


When I tried to use the gnomeapp widget, my program aborted saying that 
I needed a gnome_program_init() statement (or something like that).  I 
could find no documentation for that, nor a way of writing it in Ruby, 
so I replaced the gnomeapp widget with a window widget.

custom pixmaps for toolbar items:
I'm sure that you're aware of a bug when one tries to use a custom icon 
in a toolbar item.  I've noted that the icon "goes away" from the XML 
file when I run ruby-glade-create-template.  Also, a Ruby program 
created from Glade3 crashes with a seg fault when such custom icons are 
used.  When this is fixed, it would be nice if the pixmaps that are used 
could be put in a subdirectory.

Another thing that I'd like to be able to do is to generate my Ruby 
template with anything that will work, then customize the output after 
the program reads the Glade XML file.  Do you know of documentation that 
will tell a programmer what to look for?


Tristan Van Berkom wrote:
On Sun, 2007-03-18 at 19:18 +0200, Alan Lake wrote:
What Glade3 widget should I use as a container or a "placeholder" for 
adding gtkhtml2 to a program?  What is envisioned for a replacement for 
the deprecated Custom Widget?

   I'll be a little slow with emails since I just
got back in town, so lets start with this one :)

we put "Custom widget" in the depricated/obsolete part of
the palette because of the modular design of Glade 3, since
all widgets can be added to Glade proper by writing a simple
catalog file (although some plugin activities require code
support from a backend module).

I am afraid the documentation about this on the website
is a little out of date (there are few minor changes in
some of the semantics of the backend, but since some whole
files have changed its become quite a task to regenerate
the docs... so I've been leaving that aside).

So essentially, you can use the custom widget paradigm but
I'm not sure that will be supported by GtkBuilder (ofcourse
you can use it with libglade), or you can write a plugin xml
file for GtkHtml and it should be easy enough to add to glade.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]