comparison finch/libgnt/gntwm.c @ 21718:9487a26750d8

Add a title and some helpful text in the 'save screenshot' dialog.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 02 Dec 2007 02:38:11 +0000
parents 48bdb5b2e35b
children 73aab5bdd830
comparison
equal deleted inserted replaced
21717:48bdb5b2e35b 21718:9487a26750d8
815 static gboolean 815 static gboolean
816 dump_screen(GntBindable *b, GList *null) 816 dump_screen(GntBindable *b, GList *null)
817 { 817 {
818 GntWidget *window = gnt_file_sel_new(); 818 GntWidget *window = gnt_file_sel_new();
819 GntFileSel *sel = GNT_FILE_SEL(window); 819 GntFileSel *sel = GNT_FILE_SEL(window);
820
821 g_object_set(G_OBJECT(window), "vertical", TRUE, NULL);
822 gnt_box_add_widget(GNT_BOX(window), gnt_label_new("Please enter the filename to save the screenshot."));
823 gnt_box_set_title(GNT_BOX(window), "Save Screenshot...");
824
820 gnt_file_sel_set_suggested_filename(sel, "dump.html"); 825 gnt_file_sel_set_suggested_filename(sel, "dump.html");
821 g_signal_connect(G_OBJECT(sel), "file_selected", G_CALLBACK(dump_file_save), NULL); 826 g_signal_connect(G_OBJECT(sel), "file_selected", G_CALLBACK(dump_file_save), NULL);
822 g_signal_connect(G_OBJECT(sel->cancel), "activate", G_CALLBACK(dump_file_cancel), sel); 827 g_signal_connect(G_OBJECT(sel->cancel), "activate", G_CALLBACK(dump_file_cancel), sel);
823 gnt_widget_show(window); 828 gnt_widget_show(window);
824 return TRUE; 829 return TRUE;