RecentManager
- From: g4hx <g4hx gmx de>
- To: "'gtkmm-list gnome org'" <gtkmm-list gnome org>
- Subject: RecentManager
- Date: Wed, 31 Oct 2012 14:51:12 +0100
Hello all,
I am trying to include a RecentManager in my program but so far I am
utterly failing to do it. I have the following code to add a file
obtained by a FileChooserDialog to the recent files list:
Glib::RefPtr<RecentManager> mgr = RecentManager::get_default();
if(!mgr->add_item(dialog.get_uri()))
g_warning("Could not add item to recent files");
If I understand correctly, then a subsequent statement of the type
g_warning("%s", mgr->get_items()[0]->get_uri().raw().c_str());
should return the URI that I passed to the RecentManager. Only this
is not the case, instead the warning prints another file to the
terminal. Also the file does not show up in any FileChooserDialog.
What am I doing wrong?
g4hx
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]