[gtk+/gtk-2-24] Use existing mime type for GTK_FILE stock icon



commit 4ddf2c651285bf17137034083ce43d43bd8528b0
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 14 10:21:54 2011 -0400

    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.

 gtk/gtkiconfactory.c   |    2 +-
 gtk/gtkrecentmanager.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkiconfactory.c b/gtk/gtkiconfactory.c
index 3dfc827..b40375c 100644
--- a/gtk/gtkiconfactory.c
+++ b/gtk/gtkiconfactory.c
@@ -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);
diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c
index 54089b9..ace6f4f 100644
--- a/gtk/gtkrecentmanager.c
+++ b/gtk/gtkrecentmanager.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]