Re: Gtk.RecentManager doesn't flush updates

2012-12-21 Thread Emmanuele Bassi
hi; no, the RecentManager does not work without the gtk main loop. and yes: once the main loop is stopped, and it's the last level, gtk will flush any pending write. If we ever move the recently used files API to Gio, then it'll have to work without a main loop, but it'll also need a fairly deep

Re: Gtk.RecentManager doesn't flush updates

2012-12-21 Thread Colomban Wendling
Le 21/12/2012 16:02, Kerrick Staley a écrit : > Hello, > > I'm trying to modify the recent files list from a Vala program. I construct > a Gtk.RecentManager and call its remove_item() and add_full() methods, but > neither has any effect; the recent files list is unchanged (and > ~/.local/share/rec

Gtk.RecentManager doesn't flush updates

2012-12-21 Thread Kerrick Staley
Hello, I'm trying to modify the recent files list from a Vala program. I construct a Gtk.RecentManager and call its remove_item() and add_full() methods, but neither has any effect; the recent files list is unchanged (and ~/.local/share/recently-used.xbel is unmodified). I notice in strace that it