diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2003-11-05 17:21:22 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-05 17:21:22 +0800 |
commit | 749a4992249e0a51a6f013494ac2b7feec91a033 (patch) | |
tree | dddea8a25aeb6ec288631672d974cd68c5a259b1 /lib | |
parent | bb356f3a3548ce549e4cb3a4d30371ea0ac6f564 (diff) | |
download | gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.tar gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.tar.gz gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.tar.bz2 gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.tar.lz gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.tar.xz gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.tar.zst gsoc2013-epiphany-749a4992249e0a51a6f013494ac2b7feec91a033.zip |
Remove unused func, bad xan
2003-11-05 Marco Pesenti Gritti <marco@gnome.org>
* lib/ephy-gui.c: (ephy_gui_help):
* lib/ephy-gui.h:
Remove unused func, bad xan
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 |