Mercurial > pidgin.yaz
comparison finch/libgnt/gntwm.c @ 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 | 65f2a29617a2 |
children | 9487a26750d8 |
comparison
equal
deleted
inserted
replaced
21711:901cbc91db27 | 21717:48bdb5b2e35b |
---|---|
690 {'w', "┬"}, | 690 {'w', "┬"}, |
691 {'v', "┴"}, | 691 {'v', "┴"}, |
692 {'\0', NULL} | 692 {'\0', NULL} |
693 }; | 693 }; |
694 | 694 |
695 gnt_widget_destroy(GNT_WIDGET(fs)); | |
695 | 696 |
696 if ((file = g_fopen(path, "w+")) == NULL) { | 697 if ((file = g_fopen(path, "w+")) == NULL) { |
697 return; | 698 return; |
698 } | 699 } |
699 | 700 |
801 fprintf(file, "</span>\n"); | 802 fprintf(file, "</span>\n"); |
802 old = 0; | 803 old = 0; |
803 } | 804 } |
804 fprintf(file, "</pre>\n</body>"); | 805 fprintf(file, "</pre>\n</body>"); |
805 fclose(file); | 806 fclose(file); |
806 gnt_widget_destroy(GNT_WIDGET(fs)); | |
807 } | 807 } |
808 | 808 |
809 static void | 809 static void |
810 dump_file_cancel(GntWidget *w, GntFileSel *fs) | 810 dump_file_cancel(GntWidget *w, GntFileSel *fs) |
811 { | 811 { |