Re: [glade--] Custom Widgets using glademm
Christof Petig <[email protected]> Mon, 10 Jan 2005 17:04:12 +0100
| Newsgroups | gmane.comp.gnome.glademm |
|---|---|
| Organization | Adolf Petig GmbH & Co. KG |
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============0235814255==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature";
boundary="------------enig00C6FD1A2EF83E27496E6543"
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig00C6FD1A2EF83E27496E6543
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Damon Oberholster schrieb:
> I have previously used gtk+ with glade to successfully load
> custom widgets. I am now using gtkmm and am not sure quite
> how to covert.
>
> Thus far, I did not think it neccessary to use glademm
> because I'm not generating source from glade, simply using
> the XML file. I noticed now tho, that when using custom
> widgets in glade one must specify a "widget creation
> function". With gtk+ I had to put my function within an
> "extern 'C'" and then use a "__declspec (dllexport)
> widget_creation_func()" for libglade to find it.
>
> Now I'm using classes (due to converting to gtkmm) and my
> creation function is inside a class. My question is
> basically: How do I get libglademm to locate my creation
> function if it's inside a class?
I don't know, please ask on the libglademm list :-(
> Should I try use glademm? Would that make any difference?
I know that glademm can work well with even template'ized custom
widgets, simply put "mywidget<int>("xyz",123)" into creation function.
If you need gnome support on the other hand you most probably will end
up using libglademm or fixing glademm.
libglade(mm) and glademm realize a different development (and code
shipping) philosophy so switching is not easy.
Christof
If you feel _very_ adventurous you might take a look into
midgard.berlios.de as an example application (don't try to compile it
unless you use the magus2_cvs script)
--------------enig00C6FD1A2EF83E27496E6543
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org
iD8DBQFB4qeAng+R+0ucfO0RAr1SAJ0Z2uelj3pc7FBa+hnieZ5HrSfB3ACfZ/Hc
5UqH9ht6v3epSGESG/pbTKw=
=0JsV
-----END PGP SIGNATURE-----
--------------enig00C6FD1A2EF83E27496E6543--
--===============0235814255==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
glademm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/glademm-list
--===============0235814255==--