Re: Two toplevels in a glade file causes spurious warnings

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

 



On Mon, Feb 15, 2010 at 11:06 AM, Tadej Borovšak <tadeboro@xxxxxxxxx> wrote:
> Hi.
>
>> No, I don't build the entire interface at one point.  In the first
>> section, I build an interface that uses the first toplevel.  Later, I
>> may (or may not) build an interface that uses the second top level.
>
> If you use add_from_file() method, you're building entire GUI at once,
> whether you like it or not. The only way of building only part of GUI
> is to use add_objects_from_file() method.
>
>> Unfortunately, I cannot use the gtk_builder_add_objects_from_file()
>> method since I need to be compatible with version 2.12.  IIRC that
>> method was added later on.
>
> According to this, you'll need to split your GUI into separate files
> if you don't want to recreate the whole GUI over and over again.

OK -- That's what I was thinking anyway.  For the time being, it's a
little easier for me to put in the dummy handlers.  Later when I get a
chance I can reorg the module and break up the glade files

>
>> Note that I am converting this work from a libglade interface to a
>> gtk.builder interface.  libglade seems to handle the
>> multiple-top-levels-in-one-glade-file thing a little easier, though
>> that could just be my lack of understanding,
>
> I never used libglade, since when I started using GTK+, GtkBuilder was
> already preferred way of construction GUIs built with Glade, so I
> cannot comment on that.
>
> Tadej
>
> --
> Tadej Borovšak
> tadeboro.blogspot.com
> tadeboro@xxxxxxxxx
> tadej.borovsak@xxxxxxxxx
>



-- 
Gerald Britton
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux