Re: Question about the "realize" signal



On Dec 4, 2007 12:51 PM, Jim George <jimgeorge gmail com> wrote:

On Dec 4, 2007 3:06 AM, Dan H <dunno stoptrick com> wrote:
Hello,



Hi, first about your radio buttons, you can set them to be in container mode

in the property editor, this will allow you to remove the label and put
anything
you want inside, if you just leave the placeholder then there will be
nothing.

If you have real custom widgets (i.e. they actually register a type in the
GType
system), then please read my blog post [1] about the simplest way to
integrate custom widgets into glade.

If you still find reasons that you absolutely must play with your hierarchy
(surely there is always something), I would not recommend the realize
handler.
realizing widgets will normally never result in the creation of widgets,
only thier backend screen resources are allocated in realize(), it just
seems a weird place to do it (some things could be realized twice because
of that, I wonder if mucking about with the hierarchy in realize() could
sometimes provoke some bugs).

I would think the best place is after glade_xml_new() and before gtk_main().

Cheers,
                  -Tristan

[1] http://blogs.gnome.org/tvb/2007/07/25/some-popular-features/



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