Use existing mime type for GTK_FILE stock icon

document-x-generic is not actually a mimetype. Using text-x-generic
instead lets us work out-of-the-box in a11y themes.
This commit is contained in:
Matthias Clasen 2011-03-14 10:21:54 -04:00
parent 9862894317
commit 4ddf2c6512
2 changed files with 2 additions and 2 deletions

View File

@ -467,7 +467,7 @@ get_default_icons (GtkIconFactory *factory)
register_bidi_stock_icon (factory, GTK_STOCK_UNDELETE, GTK_STOCK_UNDELETE);
register_bidi_stock_icon (factory, GTK_STOCK_UNDO, "edit-undo");
register_stock_icon (factory, GTK_STOCK_GO_UP, "go-up");
register_stock_icon (factory, GTK_STOCK_FILE, "document-x-generic");
register_stock_icon (factory, GTK_STOCK_FILE, "text-x-generic");
register_stock_icon (factory, GTK_STOCK_DIRECTORY, "folder");
register_stock_icon (factory, GTK_STOCK_ABOUT, "help-about");
register_stock_icon (factory, GTK_STOCK_CONNECT, GTK_STOCK_CONNECT);

View File

@ -2106,7 +2106,7 @@ gtk_recent_info_get_icon (GtkRecentInfo *info,
strcmp (info->mime_type, "x-directory/normal") == 0)
retval = get_icon_fallback ("folder", size);
else
retval = get_icon_fallback ("document-x-generic", size);
retval = get_icon_fallback ("text-x-generic", size);
}
return retval;