diff options
-rw-r--r-- | widgets/table/e-table-scrolled.c | 6 | ||||
-rw-r--r-- | widgets/table/e-table-specification.c | 4 | ||||
-rw-r--r-- | widgets/table/e-table-specification.h | 1 |
3 files changed, 5 insertions, 6 deletions
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; |