[fractal] attach: Fix filename for pasted images
- From: Alexandre Franke <afranke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] attach: Fix filename for pasted images
- Date: Mon, 3 Feb 2020 10:11:47 +0000 (UTC)
commit ff429b8b22d4e84f5199e85932d02b68a58d313c
Author: yatinmaan <yatinmaan1 gmail com>
Date: Sat Jan 25 21:10:57 2020 +0530
attach: Fix filename for pasted images
fractal-gtk/src/appop/attach.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/fractal-gtk/src/appop/attach.rs b/fractal-gtk/src/appop/attach.rs
index 07bab18e..adc84c43 100644
--- a/fractal-gtk/src/appop/attach.rs
+++ b/fractal-gtk/src/appop/attach.rs
@@ -83,7 +83,8 @@ impl AppOp {
fn store_pixbuf(pixb: &Pixbuf) -> Result<PathBuf, Error> {
let data = get_pixbuf_data(pixb)?;
let mut path = glib::get_tmp_dir().unwrap_or(PathBuf::from("/tmp"));
- path.push("fractal-pasted-image");
+ /* Filename for the attached image */
+ path.push(format!("{}.png", i18n("image")));
let mut f = File::create(&path)?;
f.write_all(&data)?;
f.sync_data()?;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]