2008-03-24 Wouter Bolsterlee <wbolster@svn.gnome.org>
* shell/ev-window.c (image_save_dialog_response_cb):
Use g_str_has_suffix. See bug #523069.
svn path=/trunk/; revision=2979
+2008-03-24 Wouter Bolsterlee <wbolster@svn.gnome.org>
+
+ * shell/ev-window.c (image_save_dialog_response_cb):
+
+ Use g_str_has_suffix. See bug #523069.
+
2008-03-22 Carlos Garcia Campos <carlosgc@gnome.org>
* configure.ac:
}
extensions = gdk_pixbuf_format_get_extensions (format);
- if (strcmp (extensions[0], uri + strlen (uri) - strlen (extensions[0])) != 0) {
+ if (g_str_has_suffix(uri, extensions[0])) {
gchar *uri_extension;
uri_extension = g_strconcat (uri, ".", extensions[0], NULL);