[Glade-users] glade3: lookup_widget

Tristan Van Berkom tristan.van.berkom at gmail.com
Sat May 17 16:32:39 EDT 2008


using libglade, you will:

xml = glade_xml_new();

widget_pointer = glade_xml_get_widget (xml, "widget_name");

g_object_unref (xml); <-- remember this one, its important ;-)

gtk_main ();

===================

Basically just collect your widget pointers after parsing the xml and before
destroying it - when using GtkBuilder its essentially the same, only a few
different apis.

Cheers,
                 -Tristan

On Sat, May 17, 2008 at 10:14 AM, olliegator <olliegator at hortanet.com> wrote:
>
> Hi,
>
> In my glade2 projects I used the function lookup_widget to locate widgets by
> name.
> How can I use a similar thing in glade3?
>
> Regards,
>
> Miguel
> --
> View this message in context: http://www.nabble.com/glade3%3A-lookup_widget-tp17282627p17282627.html
> Sent from the Gnome - Glade - User mailing list archive at Nabble.com.
>
> _______________________________________________
> Glade-users maillist  -  Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>


More information about the Glade-users mailing list