# HG changeset patch # User Sadrul Habib Chowdhury # Date 1196562579 0 # Node ID 48bdb5b2e35b972e2cd744a27a6961ca707f95d9 # Parent 901cbc91db274a483e232c01620239f39478a3de Remove the file dialog first before dumping the screenshot. diff -r 901cbc91db27 -r 48bdb5b2e35b finch/libgnt/gntwm.c --- 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, "\n"); fclose(file); - gnt_widget_destroy(GNT_WIDGET(fs)); } static void