Re: recently-used.xbel

2015-01-29 Thread John Emmas
On 28/01/2015 19:20, Chris Vine wrote: On Wed, 28 Jan 2015 15:23:41 + John Emmas john...@tiscali.co.uk wrote: I'm supposed to call Glib::list_free()' to free the returned list (which is in fact, a vector). And there's no such function as 'Glib::list_free()' AFAICT. I'm using glibmm

Re: recently-used.xbel

2015-01-28 Thread Chris Vine
On Wed, 28 Jan 2015 15:23:41 + John Emmas john...@tiscali.co.uk wrote: [snip] Thanks guys. I only managed to return to this today but after following your advices, I've managed to set up a working handler function. I can iterate over my Gtk::RecentManager entries and remove any that I

Re: recently-used.xbel

2015-01-23 Thread John Emmas
that would mean me needing to prevent them from getting added to 'recently-used.xbel'? Here's the scenario... our dialog can display two types of file - let's call them typeA and typeB. But our application can only understand files of typeB. If the user selects a file of typeA, we defer to a 3rd

Re: recently-used.xbel

2015-01-23 Thread Murray Cumming
On Fri, 2015-01-23 at 11:55 +, John Emmas wrote: [snip] So what API calls do I need to eventually arrive at a pointer to the RecentManager object? [snip]: If you just call Gtk::RecentManager::get_default() (or gtk_recent_manager_get_default) instead of instantiating it yourself then you

recently-used.xbel

2015-01-22 Thread John Emmas
the file I opened last time. As the number of entries increases, they get saved in a persistent file called recently-used.xbel. This all seems to be a feature of gtk+. There's nothing in the actual app that handles any of this. Currently we're using gtk+2 (as opposed to gtk+3). Is there any

Re: recently-used.xbel

2015-01-22 Thread Matthias Clasen
launch the GtkFileChooser I'll see an entry called Recently Used which lists the file I opened last time. As the number of entries increases, they get saved in a persistent file called recently-used.xbel. This all seems to be a feature of gtk+. There's nothing in the actual app that handles

Re: recently-used.xbel

2015-01-22 Thread Emmanuele Bassi
hi; On 22 January 2015 at 19:34, John Emmas john...@tiscali.co.uk wrote: On Thu, Jan 22, 2015 at 8:52 AM, John Emmas john...@tiscali.co.uk wrote: Is there any way I can modify what gets saved in 'recently-used.xbel'? For example, if I DIDN'T want it to include files with a particular

Re: recently-used.xbel

2015-01-22 Thread John Emmas
On 22 Jan 2015, at 18:30, Matthias Clasen wrote: On Thu, Jan 22, 2015 at 8:52 AM, John Emmas john...@tiscali.co.uk wrote: Is there any way I can modify what gets saved in 'recently-used.xbel'? For example, if I DIDN'T want it to include files with a particular extension, does