aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-03-05 08:31:32 +0800
committerChris Lahey <clahey@src.gnome.org>2000-03-05 08:31:32 +0800
commitb42df6ac70b380296061e8c0f9020f3edc31e6c3 (patch)
tree86d22b279e23c2355e9e794e83ccec99c78dee12 /widgets/table/e-table.c
parentcfb64e0ced9d5a058d934e3c55aaab5a9242852d (diff)
downloadgsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.tar
gsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.tar.gz
gsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.tar.bz2
gsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.tar.lz
gsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.tar.xz
gsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.tar.zst
gsoc2013-evolution-b42df6ac70b380296061e8c0f9020f3edc31e6c3.zip
Added saving of frozen_columns count. Added a vertical scrollbar to
2000-03-04 Christopher James Lahey <clahey@helixcode.com> * e-table.c: Added saving of frozen_columns count. Added a vertical scrollbar to ETable. svn path=/trunk/; revision=2052
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 1cfae378e3..4bd4417cd0 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -674,10 +674,12 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm,
xmlNode *xmlRoot;
xmlNode *xmlColumns;
xmlNode *xmlGrouping;
+
+ GtkWidget *vscrollbar;
GTK_TABLE (e_table)->homogeneous = FALSE;
- gtk_table_resize (GTK_TABLE (e_table), 1, 2);
+ gtk_table_resize (GTK_TABLE (e_table), 2, 2);
e_table->full_header = full_header;
gtk_object_ref (GTK_OBJECT (full_header));
@@ -699,6 +701,12 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm,
e_table_setup_table (e_table, full_header, e_table->header, etm, xmlGrouping);
e_table_fill_table (e_table, etm);
+ vscrollbar = gtk_vscrollbar_new(gtk_layout_get_vadjustment(GTK_LAYOUT(e_table->table_canvas)));
+ gtk_widget_show (vscrollbar);
+ gtk_table_attach (
+ GTK_TABLE (e_table), vscrollbar,
+ 1, 2, 1, 2, 0, GTK_FILL | GTK_EXPAND, 0, 0);
+
gtk_widget_pop_colormap ();
gtk_widget_pop_visual ();
}
@@ -765,6 +773,8 @@ et_build_column_spec(ETable *e_table)
xmlNewChild(columns_shown, NULL, "column", text);
g_free(text);
}
+ if ( e_table->header->frozen_count != 0 )
+ e_xml_set_integer_prop_by_name(columns_shown, "frozen_columns", e_table->header->frozen_count);
return columns_shown;
}