[Xfce4-commits] <xfdesktop:xfce-4.8> Fix creation of empty file from template menu (bug #7230).
Jérôme Guelfucci
noreply at xfce.org
Fri Apr 22 16:24:01 CEST 2011
Updating branch refs/heads/xfce-4.8
to 12afba9689d34715dc1a605d3c3c0ec6b2212d3a (commit)
from 6b1de534bf48a06aa81614e8c41e6410d5305ff8 (commit)
commit 12afba9689d34715dc1a605d3c3c0ec6b2212d3a
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Sun Apr 17 19:14:29 2011 +0200
Fix creation of empty file from template menu (bug #7230).
src/xfdesktop-file-icon-manager.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/xfdesktop-file-icon-manager.c b/src/xfdesktop-file-icon-manager.c
index c85c08d..126301b 100644
--- a/src/xfdesktop-file-icon-manager.c
+++ b/src/xfdesktop-file-icon-manager.c
@@ -1022,6 +1022,10 @@ xfdesktop_file_icon_template_item_activated(GtkWidget *mi,
xfdesktop_file_utils_create_file_from_template(fmanager->priv->folder, file,
fmanager->priv->gscreen,
GTK_WINDOW(toplevel));
+ } else {
+ xfdesktop_file_utils_create_file(fmanager->priv->folder, "text/plain",
+ fmanager->priv->gscreen,
+ GTK_WINDOW(toplevel));
}
}
More information about the Xfce4-commits
mailing list