GNOME Bugzilla – Bug 547305
add API for retrieving GIcon and thumbnails from GtkRecentInfo
Last modified: 2016-04-10 16:33:49 UTC
GtkRecentInfo has the ability to retrieve the GdkPixbuf of the MIME type icon. it should also be able to return the GIcon directly and query for the thumbnail. since it adds API, and 2.13 is API frozen, this should go in after the branch for 2.15.
Created attachment 116357 [details] [review] [PATCH] Add API for retrieving GIcon and thumbnail out of GtkRecentInfo gtkrecentmanager.c | 206 +++++++++++++++++++++++++++++++++++++++++---- gtkrecentmanager.h | 2 2 files changed, 190 insertions(+), 18 deletions(-)
There seems to be a bunch of unrelated fixes/optimizations in this patch, can we get those committed separately ? - priv->filename = g_build_filename (g_get_home_dir (), + priv->filename = g_build_filename (g_get_user_data_dir (), Is this a compatible change ? In the light of recent filechooser changes, do we want to add api to retrieve the file size ? Please update since teags to 2.16, and add new functions to gtk.symbols and gtk-sections.txt
yeah, the patch is a fluke - I'll mark it as rejected. this bug is more a reminder to me to fix this stuff than a real attempt at doing so. :-) for the change in the file position I need to add code that checks the old file in case the new one hasn't been found. as for the file size: yes, definitely. I'll rework the patch as soon as possible.
This has been fixed by commit b0fe3e49bbf788c9dd81d8c2f236666cc78d972d. *** This bug has been marked as a duplicate of bug 617174 ***