On 09.09.2010 02:46, Andrew Poelstra wrote:
Well, I am converting the top-level window to its own widget, rather than using a stock GtkWindow and tacking stuff onto it. That way I can migrate a lot of the global variables to member variables, pass more things as parameters, and use the 'const' keyword a lot more.
Is it really necessary? I believe most GTK-apps use the ordinary way. If you create its own widget you make it more complicated to (potential new) developers not so familiar with this technique.
Did you take a look at g_object_get_data/g_object_set_data (http://library.gnome.org/devel/gobject/stable/gobject-The-Base-Object-Type.html#g-object-get-data)? Maybe this can help putting some of the global variables in the main window.
Frank. _______________________________________________ geda-user mailing list geda-user@xxxxxxxxxxxxxx http://www.seul.org/cgi-bin/mailman/listinfo/geda-user