diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-03-04 04:05:57 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-03-04 04:05:57 +0800 |
commit | 626f63df0b18cc891b7995a0b7202303efede45d (patch) | |
tree | 9a963dfa708abf113b067bf1a11c7592f13cb565 /widgets/table/test-table.c | |
parent | bc0d854e93fa0dd9ca596d1663f389f31f458439 (diff) | |
download | gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.tar gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.tar.gz gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.tar.bz2 gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.tar.lz gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.tar.xz gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.tar.zst gsoc2013-evolution-626f63df0b18cc891b7995a0b7202303efede45d.zip |
Added a bunch of stuff to the TODO list. Put +s before a few of the items
2000-03-04 Christopher James Lahey <clahey@helixcode.com>
* TODO: Added a bunch of stuff to the TODO list. Put +s before a
few of the items that are finished.
* test-table.c: Add a button to save the spec file.
* e-table.c, e-table.h: Add loading configurations from files as
well as the ability to get the current configuration out of the
widget.
svn path=/trunk/; revision=2025
Diffstat (limited to 'widgets/table/test-table.c')
-rw-r--r-- | widgets/table/test-table.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/widgets/table/test-table.c b/widgets/table/test-table.c index 401cacb285..7bb54b668a 100644 --- a/widgets/table/test-table.c +++ b/widgets/table/test-table.c @@ -273,9 +273,15 @@ table_browser_test (void) } static void +save_spec (GtkWidget *button, ETable *e_table) +{ + e_table_save_specification(e_table, "e-table-test.xml"); +} + +static void do_e_table_demo (const char *spec) { - GtkWidget *e_table, *window, *frame; + GtkWidget *e_table, *window, *frame, *vbox, *button; ECell *cell_left_just; ETableHeader *full_header; int i; @@ -308,11 +314,22 @@ do_e_table_demo (const char *spec) window = gtk_window_new (GTK_WINDOW_TOPLEVEL); frame = gtk_frame_new (NULL); e_table = e_table_new (full_header, e_table_model, spec); - gtk_container_add (GTK_CONTAINER (frame), e_table); + + button = gtk_button_new_with_label("Save spec"); + gtk_signal_connect (GTK_OBJECT (button), "clicked", + GTK_SIGNAL_FUNC (save_spec), e_table); + + vbox = gtk_vbox_new(FALSE, 0); + + gtk_box_pack_start (GTK_BOX (vbox), e_table, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); + gtk_container_add (GTK_CONTAINER (frame), vbox); gtk_container_add (GTK_CONTAINER (window), frame); gtk_widget_set_usize (window, 200, 200); gtk_widget_show (e_table); + gtk_widget_show (button); + gtk_widget_show (vbox); gtk_widget_show (frame); gtk_widget_show (window); } |