Mercurial > pidgin
changeset 6162:7e967f2d6721
[gaim-migrate @ 6642]
My bad
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 17 Jul 2003 01:20:34 +0000 |
parents | dbe56164696f |
children | e504d7a8bb06 |
files | src/gtkimhtml.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkimhtml.c Wed Jul 16 23:13:14 2003 +0000 +++ b/src/gtkimhtml.c Thu Jul 17 01:20:34 2003 +0000 @@ -1568,6 +1568,9 @@ GError *error = NULL; #if GTK_CHECK_VERSION(2,2,0) GSList *formats = gdk_pixbuf_get_formats(); +#else + char *basename = g_path_get_basename(filename); + char *ext = strrchr(basename, '.'); #endif if (g_file_test(filename, G_FILE_TEST_IS_DIR)) { @@ -1611,9 +1614,6 @@ g_slist_free(formats); #else /* this is really ugly code, but I think it will work */ - char *basename = g_path_get_basename(filename); - char *ext = strrchr(basename, '.'); - if(ext) { ext++; if(!g_ascii_strcasecmp(ext, "jpeg") || !g_ascii_strcasecmp(ext, "jpg"))