From 0e900049a815c3e6b4c6ab4cad874792270dc5ae Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 13 Feb 2001 20:23:44 +0000 Subject: Set policy of scrolled window to be automatic/automatic. 2001-02-13 Christopher James Lahey * 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 --- widgets/table/e-table-scrolled.c | 6 ------ widgets/table/e-table-specification.c | 4 ++++ widgets/table/e-table-specification.h | 1 + 3 files changed, 5 insertions(+), 6 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-table-scrolled.c b/widgets/table/e-table-scrolled.c index 221ebdf6cb..cd816a678c 100644 --- a/widgets/table/e-table-scrolled.c +++ b/widgets/table/e-table-scrolled.c @@ -52,12 +52,6 @@ e_table_scrolled_init (GtkObject *object) static void e_table_scrolled_real_construct (ETableScrolled *ets) { - gtk_object_set(GTK_OBJECT(ets), - "shadow_type", GTK_SHADOW_IN, - "hscrollbar_policy", GTK_POLICY_NEVER, - "vscrollbar_policy", GTK_POLICY_AUTOMATIC, - NULL); - gtk_container_add(GTK_CONTAINER(ets), GTK_WIDGET(ets->table)); gtk_widget_show(GTK_WIDGET(ets->table)); 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: diff --git a/widgets/table/e-table-specification.h b/widgets/table/e-table-specification.h index 10f3b1c785..7c73936079 100644 --- a/widgets/table/e-table-specification.h +++ b/widgets/table/e-table-specification.h @@ -24,6 +24,7 @@ typedef struct { guint click_to_add : 1; guint draw_grid : 1; guint draw_focus : 1; + guint horizontal_scrolling : 1; GtkSelectionMode selection_mode; ETableCursorMode cursor_mode; -- cgit v1.2.3