Re: Subclassing question
- From: Murray Cumming <murrayc murrayc com>
- To: Jan Hudec <bulb ucw cz>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Subclassing question
- Date: Sun, 28 Nov 2004 19:56:03 +0100
On Sat, 2004-11-27 at 17:14 +0100, Jan Hudec wrote:
> Hello All,
>
> For use in configuration interface, I need to create Gtkmm objects, that
> will have new signals and new properties registered with the GObject
> type system, so I can use the by-name system from a configuration
> module.
What API is this?
> The objects will be derived either from Glib::Object or from some
> Gtk::Widget subclass. They won't need any extern "C" stuff except what
> their ancestor does.
>
> Obviously I want to get my hands dirty with the C interface as little as
> possible. So I'd like to ask what functions from Glib::Class and perhaps
> other classes and whether (and how) I could use the gmmproc
> preprocessor.
Adding a PropertyProxy<> member to your C++ class will register a new
property with the underlying GObject. But we have no C++ API to register
new GObject signals. But you can use the C API for that.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]