Re: [Cluttermm] Use of Glib::RefPtr<T> vs. Gtkmm
- From: Michael <space3000 gmail com>
- To: José Alburquerque <jaalburquerque cox net>
- Cc: gtkmm-list gnome org
- Subject: Re: [Cluttermm] Use of Glib::RefPtr<T> vs. Gtkmm
- Date: Tue, 16 Mar 2010 15:24:45 +0200
Hello
On Mon, 2010-03-15 at 18:08 -0400, José Alburquerque wrote:
> On Mon, 2010-03-15 at 23:28 +0200, Michael wrote:
> > I'm not sure it's related, but it also has something to do with
> > smart pointers.
> > The get_object() method in Gtk::Builder class returns
> > Glib::RefPtr<Glib::Object>.
> > What would be the proper way of extracting those objects from builder
> > files?
>
> You could use Gtk::Builder::get_widget():
I could have done it if Gtk::Adjustment was derived from Gtk::Widget,
but unfortunately this is not the case.
Is there some caveat about Gtk::Adjutment and/or other non-widgets, that
can be used with builder?
Am I missing something by using plain pointers, rather than RefPtr?
>
> http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1Builder.html#a6604abee829e66e0d5d97072227e7cd3
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]