[Glade-users] glade3: lookup_widget
- From: tristan.van.berkom at gmail.com (Tristan Van Berkom)
- Subject: [Glade-users] glade3: lookup_widget
- Date: Sat, 17 May 2008 17:32:39 -0300
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]