changeset 21717:48bdb5b2e35b

Remove the file dialog first before dumping the screenshot.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 02 Dec 2007 02:29:39 +0000
parents 901cbc91db27
children 9487a26750d8
files finch/libgnt/gntwm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/finch/libgnt/gntwm.c	Sat Dec 01 19:34:59 2007 +0000
+++ b/finch/libgnt/gntwm.c	Sun Dec 02 02:29:39 2007 +0000
@@ -692,6 +692,7 @@
 		{'\0', NULL}
 	};
 
+	gnt_widget_destroy(GNT_WIDGET(fs));
 
 	if ((file = g_fopen(path, "w+")) == NULL) {
 		return;
@@ -803,7 +804,6 @@
 	}
 	fprintf(file, "</pre>\n</body>");
 	fclose(file);
-	gnt_widget_destroy(GNT_WIDGET(fs));
 }
 
 static void