aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
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
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')
-rw-r--r--widgets/table/e-table-scrolled.c6
-rw-r--r--widgets/table/e-table-specification.c4
-rw-r--r--widgets/table/e-table-specification.h1
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;