Small tutorial on Glade usage:

Ok, there are some things we should standardize on RE: Glade. One - we still use gtk_signal_connect() to handle signals and not any of glade’s signal handler methods. The preferential way of doing this is:

GtkWidget * w = NULL;

w = glade_xml_get_widget (m_pXML, “widget_name”);

gtk_signal_connect (GTK_OBJECT (w), “signal_name”,

GTK_SIGNAL_FUNC(signal_handler),

static_cast<void *>(this));

In the destructor, please do this and properly unref the Glade XML widget:

if (m_pXML)

gtk_object_unref (GTK_OBJECT (m_pXML));

Also, make sure that the GTK and Gnome dialog buttons have the same name so that no code need be different between the two implementations.

If you are substituting a Glade dialog for an existing GTK/Gnome one, do the following:

cvs remove gnome/prefix_GnomeDialog_Foo.*

and in ap_UnixDialog_All.h, remove all references to prefix_GnomeDialog_Foo. This includes all #include statements and DeclareDialog() calls.

Finally, remove all references to the (now no longer existing) Gnome dialog.

Thanks,

Dom