Fix shell_get_thumbnail* to not be specific for GtkRecentInfo items
Currently function shell_get_thumbnail_for_recent_info located in src/shell-global.c is used to get thumbnails for recently used files. However, it only works if you have a GtkRecentInfo object for the file, even though the thumbnail generation code doesn't depend on it. This commit renames the function to shell_get_thumbnail and makes it generic so that it just takes two strings: a filename and a mimetype.
This commit is contained in:

committed by
Marina Zhurakhinskaya

parent
8b1d7e3407
commit
e478cc4c4e
@ -36,7 +36,7 @@ GType shell_global_get_type (void) G_GNUC_CONST;
|
||||
gboolean shell_clutter_texture_set_from_pixbuf (ClutterTexture *texture,
|
||||
GdkPixbuf *pixbuf);
|
||||
|
||||
GdkPixbuf *shell_get_thumbnail_for_recent_info(GtkRecentInfo *recent_info);
|
||||
GdkPixbuf *shell_get_thumbnail(const gchar *uri, const gchar *mime_type);
|
||||
|
||||
GSList *shell_get_categories_for_desktop_file(const char *desktop_file_name);
|
||||
|
||||
|
Reference in New Issue
Block a user