Remove the file dialog first before dumping the screenshot.

Sun, 02 Dec 2007 02:29:39 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sun, 02 Dec 2007 02:29:39 +0000
changeset 21834
3b38970ae13f
parent 21828
1a1c2e5acb3f
child 21835
951e27453f24

Remove the file dialog first before dumping the screenshot.

finch/libgnt/gntwm.c file | annotate | diff | comparison | revisions
--- 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

mercurial