From: Paul Mangan Date: Mon, 22 Aug 2005 11:16:08 +0000 (+0000) Subject: 2005-08-22 [paul] 1.9.13cvs48 X-Git-Tag: rel_1_9_14~39 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=512654e39786ed97aa7d5ef9622bba612b44537c 2005-08-22 [paul] 1.9.13cvs48 * src/textview.c fix open_image_cb() --- diff --git a/ChangeLog-gtk2.claws b/ChangeLog-gtk2.claws index e28e3f8b1..933615cea 100644 --- a/ChangeLog-gtk2.claws +++ b/ChangeLog-gtk2.claws @@ -1,3 +1,8 @@ +2005-08-22 [paul] 1.9.13cvs48 + + * src/textview.c + fix open_image_cb() + 2005-08-22 [paul] 1.9.13cvs47 * src/imap.c diff --git a/PATCHSETS b/PATCHSETS index c522253c0..7582201de 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -733,3 +733,4 @@ ( cvs diff -u -r 1.395.2.115 -r 1.395.2.116 src/summaryview.c; ) > 1.9.13cvs45.patchset ( cvs diff -u -r 1.83.2.36 -r 1.83.2.37 src/mimeview.c; cvs diff -u -r 1.204.2.54 -r 1.204.2.55 src/prefs_common.c; cvs diff -u -r 1.96.2.70 -r 1.96.2.71 src/textview.c; cvs diff -u -r 1.9.2.13 -r 1.9.2.14 src/common/defs.h; ) > 1.9.13cvs46.patchset ( cvs diff -u -r 1.179.2.58 -r 1.179.2.59 src/imap.c; ) > 1.9.13cvs47.patchset +( cvs diff -u -r 1.96.2.71 -r 1.96.2.72 src/textview.c; ) > 1.9.13cvs48.patchset diff --git a/configure.ac b/configure.ac index 9645988f2..f861b11c8 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=13 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=47 +EXTRA_VERSION=48 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/textview.c b/src/textview.c index 4a1876b54..95935bfc9 100644 --- a/src/textview.c +++ b/src/textview.c @@ -1957,6 +1957,7 @@ static void open_image_cb (TextView *textview, guint action, void *data) const gchar *def_cmd; const gchar *p; gchar *filename = NULL; + gchar *tmp_filename = NULL; if (uri == NULL) return; @@ -1974,6 +1975,10 @@ static void open_image_cb (TextView *textview, guint action, void *data) subst_for_filename(filename); + tmp_filename = g_filename_from_uri(uri->uri, NULL, NULL); + copy_file(tmp_filename, filename, FALSE); + g_free(tmp_filename); + cmd = prefs_common.mime_image_viewer; def_cmd = default_cmdline;