mirror of https://github.com/GNOME/gimp.git
strstr on dnd_crap, not filename, since filename will be NULL in that
2003-11-19 Manish Singh <yosh@gimp.org> * app/widgets/gimpdnd.c (gimp_dnd_open_files): strstr on dnd_crap, not filename, since filename will be NULL in that case. Also remove doubled declaration of filename.
This commit is contained in:
parent
986c831838
commit
a8356d4834
|
@ -1,3 +1,9 @@
|
|||
2003-11-19 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* app/widgets/gimpdnd.c (gimp_dnd_open_files): strstr on dnd_crap,
|
||||
not filename, since filename will be NULL in that case. Also remove
|
||||
doubled declaration of filename.
|
||||
|
||||
2003-11-19 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* app/display/gimpdisplayshell.c (gimp_display_shell_shrink_wrap):
|
||||
|
|
|
@ -980,7 +980,7 @@ gimp_dnd_open_files (GtkWidget *widget,
|
|||
/* try if we got a "file:" uri in the local filename encoding */
|
||||
gchar *unescaped_filename;
|
||||
|
||||
if (strstr (filename, "%"))
|
||||
if (strstr (dnd_crap, "%"))
|
||||
{
|
||||
unescaped_filename = gimp_unescape_uri_string (start, -1,
|
||||
"/", FALSE);
|
||||
|
@ -1015,7 +1015,7 @@ gimp_dnd_open_files (GtkWidget *widget,
|
|||
|
||||
if (! gimage && status != GIMP_PDB_CANCEL)
|
||||
{
|
||||
gchar *filename = file_utils_uri_to_utf8_filename (uri);
|
||||
filename = file_utils_uri_to_utf8_filename (uri);
|
||||
|
||||
g_message (_("Opening '%s' failed:\n\n%s"),
|
||||
filename, error->message);
|
||||
|
|
Loading…
Reference in New Issue