diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-gui.c | 43 | ||||
-rw-r--r-- | lib/ephy-gui.h | 2 |
2 files changed, 0 insertions, 45 deletions
diff --git a/lib/ephy-gui.c b/lib/ephy-gui.c index 9393fc295..81077d140 100644 --- a/lib/ephy-gui.c +++ b/lib/ephy-gui.c @@ -113,46 +113,3 @@ ephy_gui_help (GtkWindow *parent, g_error_free (err); } } - -#define ICON_NAME_MIME_PREFIX "gnome-mime-" - -static char * -make_mime_name (const char *mime_type) -{ - char *mime_type_without_slashes, *icon_name; - char *p; - - if (mime_type == NULL) - { - return NULL; - } - - mime_type_without_slashes = g_strdup (mime_type); - - while ((p = strchr(mime_type_without_slashes, '/')) != NULL) - *p = '-'; - - icon_name = g_strconcat (ICON_NAME_MIME_PREFIX, mime_type_without_slashes, NULL); - g_free (mime_type_without_slashes); - - return icon_name; -} - -GdkPixbuf * -ephy_gui_get_pixbuf_from_mime_type (const char *mime_type, - int size) -{ - GdkPixbuf *pixbuf; - GtkIconTheme *icon_theme; - char *icon_name; - - icon_name = make_mime_name (mime_type); - - icon_theme = gtk_icon_theme_get_default (); - g_return_val_if_fail (icon_theme != NULL, NULL); - - pixbuf = gtk_icon_theme_load_icon (icon_theme, icon_name, - size, 0, NULL); - - return pixbuf; -} diff --git a/lib/ephy-gui.h b/lib/ephy-gui.h index 203eba975..879d6330f 100644 --- a/lib/ephy-gui.h +++ b/lib/ephy-gui.h @@ -38,8 +38,6 @@ void ephy_gui_help (GtkWindow *parent, const char *file_name, const char *link_id); -GdkPixbuf *ephy_gui_get_pixbuf_from_mime_type (const char *mime_type, - int size); G_END_DECLS #endif |