Il Tue, 7 Nov 2017 13:52:01 +0100 Nils Söderman <n...@meditalk.com> scrisse:
> Hello, i have been using glade to build a GUI, doing an app to fill the > entry-boxes with data. OK so far. But when i wanted to color the boxes > with help of PyGTK according to their content and did not succeed with > that i decided to start using c instead, where i have 20 years more > experience. But i fell on a simple detail, when in PyGTK i wanted a > pointer to an entrybox, using MyBox = builder.get_object ( "MyBoxID" ) > and tried to find an equivalent in GTK c i was in no luck. So, how to > exchange MyBox = builder.get_object ( "MyBoxID" ) to c-acceptable code? > ALL the example code i have found uses pointer derived with a variant of > 'new', not applicable using glade! PLEASE point me right! Hi, the translation is basically 1:1. GtkEntry *MyBox = GTK_ENTRY(gtk_builder_get_object(builder, "MyBoxID")); Ciao. -- Nicola _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list