summaryrefslogtreecommitdiff
path: root/gtk/gtkrecentmanager.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-10-23 06:20:08 +0200
committerMatthias Clasen <mclasen@redhat.com>2017-10-23 06:21:59 +0200
commit8b84df422b83e73c1b0325537e351a4a71388887 (patch)
treebcac651d9fb72e166629ce724975b341160222ed /gtk/gtkrecentmanager.c
parentb940872005c960ff3bb921121da812c467945581 (diff)
downloadgtk+-8b84df422b83e73c1b0325537e351a4a71388887.tar.gz
Drop gtk_recent_info_get_icon
We are moving away from pixbuf-based apis. Use gtk_recent_info_get_gicon instead.
Diffstat (limited to 'gtk/gtkrecentmanager.c')
-rw-r--r--gtk/gtkrecentmanager.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 65bb375750..c655091442 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -2011,42 +2011,6 @@ get_icon_fallback (const gchar *icon_name,
}
/**
- * gtk_recent_info_get_icon:
- * @info: a #GtkRecentInfo
- * @size: the size of the icon in pixels
- *
- * Retrieves the icon of size @size associated to the resource MIME type.
- *
- * Returns: (nullable) (transfer full): a #GdkPixbuf containing the icon,
- * or %NULL. Use g_object_unref() when finished using the icon.
- *
- * Since: 2.10
- */
-GdkPixbuf *
-gtk_recent_info_get_icon (GtkRecentInfo *info,
- gint size)
-{
- GdkPixbuf *retval = NULL;
-
- g_return_val_if_fail (info != NULL, NULL);
-
- if (info->mime_type)
- retval = get_icon_for_mime_type (info->mime_type, size);
-
- /* this function should never fail */
- if (!retval)
- {
- if (info->mime_type &&
- strcmp (info->mime_type, "x-directory/normal") == 0)
- retval = get_icon_fallback ("folder", size);
- else
- retval = get_icon_fallback ("text-x-generic", size);
- }
-
- return retval;
-}
-
-/**
* gtk_recent_info_get_gicon:
* @info: a #GtkRecentInfo
*