Re: evince r2972 - in trunk: . shell



Hi Carlos,

I've seen your patch below, and have a question. See below.

2008-03-19 klockan 17:24 skrev carlosgc svn gnome org:
> 	* shell/ev-window.c: (image_save_dialog_response_cb):
> 	Do not append the extension to filename when saving an image
> 	if the filename alredy contains the extension. Fixes bug #523069.
>
> [snip]
>
> +	if (strcmp (extensions[0], uri + strlen (uri) - strlen (extensions[0])) != 0) {
> +		gchar *uri_extension;

Why not just use g_str_has_suffix instead?

  mvrgr, Wouter

-- 
:wq                                                       mail uws xs4all nl
                                                      web http://uwstopia.nl

now she's gone love burns inside me           -- black rebel motorcycle club

Attachment: signature.asc
Description: Digital signature



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