aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-specification.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-02-14 04:23:44 +0800
committerChris Lahey <clahey@src.gnome.org>2001-02-14 04:23:44 +0800
commit0e900049a815c3e6b4c6ab4cad874792270dc5ae (patch)
tree4adaeee75049d127ec080c6e8268a55f62d8cbd5 /widgets/table/e-table-specification.c
parent9aca6f5902c78f98cda7fe79d699e288c3bc9ad0 (diff)
downloadgsoc2013-evolution-0e900049a815c3e6b4c6ab4cad874792270dc5ae.tar.gz
gsoc2013-evolution-0e900049a815c3e6b4c6ab4cad874792270dc5ae.tar.zst
gsoc2013-evolution-0e900049a815c3e6b4c6ab4cad874792270dc5ae.zip
Set policy of scrolled window to be automatic/automatic.
2001-02-13 Christopher James Lahey <clahey@ximian.com> * e-table-scrolled.c (e_table_scrolled_real_construct): Set policy of scrolled window to be automatic/automatic. * e-table-specification.c, e-table-specification.h (etsp_init): Added a horizontal-scrolling attribute. svn path=/trunk/; revision=8208
Diffstat (limited to 'widgets/table/e-table-specification.c')
-rw-r--r--widgets/table/e-table-specification.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/widgets/table/e-table-specification.c b/widgets/table/e-table-specification.c
index fff5812aa2..165f17ae04 100644
--- a/widgets/table/e-table-specification.c
+++ b/widgets/table/e-table-specification.c
@@ -63,6 +63,8 @@ etsp_init (ETableSpecification *etsp)
etsp->click_to_add = FALSE;
etsp->draw_grid = FALSE;
etsp->draw_focus = TRUE;
+ etsp->horizontal_scrolling = FALSE;
+
etsp->cursor_mode = E_TABLE_CURSOR_SIMPLE;
etsp->selection_mode = GTK_SELECTION_MULTIPLE;
@@ -160,6 +162,7 @@ e_table_specification_load_from_node (ETableSpecification *specification,
specification->click_to_add = e_xml_get_bool_prop_by_name (node, "click-to-add");
specification->draw_grid = e_xml_get_bool_prop_by_name (node, "draw-grid");
specification->draw_focus = e_xml_get_bool_prop_by_name_with_default (node, "draw-focus", TRUE);
+ specification->horizontal_scrolling = e_xml_get_bool_prop_by_name_with_default (node, "horizontal-scrolling", FALSE);
specification->selection_mode = GTK_SELECTION_MULTIPLE;
temp = e_xml_get_string_prop_by_name (node, "selection-mode");
@@ -298,6 +301,7 @@ e_table_specification_save_to_node (ETableSpecification *specification,
e_xml_set_bool_prop_by_name (node, "click-to-add", specification->click_to_add);
e_xml_set_bool_prop_by_name (node, "draw-grid", specification->draw_grid);
e_xml_set_bool_prop_by_name (node, "draw-focus", specification->draw_focus);
+ e_xml_set_bool_prop_by_name (node, "horizontal-scrolling", specification->horizontal_scrolling);
switch (specification->selection_mode){
case GTK_SELECTION_SINGLE: