Loading a derived widget from .glade



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all

I want to know the correct way to load a widget derived from
Gtk::GL::DrawingArea (from gtkglextmm)

I have a class like this:

class MySceneClass : public Gtk::GL::DrawingArea
{
~  ...
};

(and Gtk::GL::DrawingArea derives from Gtk::DrawingArea)

But Glade (the interface designer) doesn't have any Gtk::GL::DrawingArea.

So, I think (me noob) I must use Gtk::DrawingArea in .glade file, and
then load it using Gnome::Glade::Xml::get_widget_derived to get a
MySceneClass*.

I'm gonna try this but I want to know if is there any better approach on
doing this.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB8rWHZSBU6dC79g0RAktpAJ9uV+DotfYDR5JS6jcRI9ftQhvYrACgn0mo
NPqfgCmXsf03Pxl18KO6h64=
=xZBC
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]