On 5/26/07, Felipe Balbi <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> my problem is the folowing...
> I have a glade xml file being opened in my code...
>
> I wanna use the same pointer to this XML file in other functions...
> how could I do it??
> I have the implementation below, but my signals are not connecting.. why??
> (maybe this IS a newbie question... but I'm not figuring this out...
> the purpose here is to make it easier if I wanna port the application
> to other Graphical Interface Toolkit such as Maemo/Hildon, QT or even
> text...)

Apparently there's no "standard" way of doing this, my approach is to
have a structure of data associated with the main_window widget using
g_object_set_data, then retrieve the structure wherever I need it,
using g_object_get_data. One of the structure items is the glade XML
object. You can also pass the structure (or just the glade XML ptr) as
a parameter to your signal handlers. This seems to be a more common
approach.

Where are the calls to g_signal_connect. Maybe you forgot to include
it in the post?

-Jim
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to