Re: recently-used.xbel
- From: Matthias Clasen <matthias clasen gmail com>
- To: John Emmas <johne53 tiscali co uk>
- Cc: gtk-devel-list <gtk-devel-list gnome org>
- Subject: Re: recently-used.xbel
- Date: Thu, 22 Jan 2015 13:30:36 -0500
On Thu, Jan 22, 2015 at 8:52 AM, John Emmas <johne53 tiscali co uk> wrote:
Yesterday I mistakenly posted this to gtk-list when it should probably have come here... sorry.
Anyway... I'm working on an app which uses a GtkFileChooser dialog. Let's say I use it to open a file.
Next time I 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 any of this.
Currently we're using gtk+2 (as opposed to gtk+3). 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
the existing code provide any mechanism for achieving that? In other words, I want the user to be able to
select files of that type - but I DON'T want them to get listed in 'recently-used.xbel'.
Or alternatively... if I ONLY wanted it to include files with certain extension(s) can I specify that
somehow in my application? Thanks.
There's no direct api to achieve this. You can probably get it done in
a few lines of code with GtkRecentManager::changed and
gtk_recent_manager_remove_item().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]