RecentInfo
- From: "Jonathon Jongsma" <jonathon jongsma gmail com>
- To: "Gtkmm Mailing List" <gtkmm-list gnome org>
- Subject: RecentInfo
- Date: Tue, 25 Jul 2006 21:00:38 -0500
I'm trying to use the list of recent items, i.e.:
std::vector<Glib::RefPtr<Gtk::RecentInfo> > info_list =
m_refRecentManager->get_items();
But when I compile this, it complains that RecentInfo doesn't have
reference() and unreference() functions. I'm assuming that most
things managed by RefPtr get their reference() and unreference()
functions through inheritance from Glib::Object or something, but what
about things that are not GObject-based types?
I added the following lines to get it to compile
_WRAP_METHOD(void reference() const, gtk_recent_info_ref)
_WRAP_METHOD(void unreference() const, gtk_recent_info_unref)
Is there a better way to do this or should I commit the lines above?
--
jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]