[Xfce4-commits] <xfdesktop:master> Fix creation of empty file from template menu (bug #7230).

Jérôme Guelfucci noreply at xfce.org
Fri Apr 22 16:18:01 CEST 2011


Updating branch refs/heads/master
         to 489def8303e97b98876c6c08b8094f6556df444c (commit)
       from 28b623b864274b2c3fb1395fce20ddd21cd9fe7c (commit)

commit 489def8303e97b98876c6c08b8094f6556df444c
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