aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-11 06:48:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-11 06:48:14 +0800
commit695591dd9377db47cd34b169e7c12baa2bc581e6 (patch)
treecd878e51ce8e84466346c5cb53e472999467255b /widgets/table/e-table.c
parent8139fd12a7fcc74935a4d318f0f9554f2e2b03c2 (diff)
downloadgsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.tar
gsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.tar.gz
gsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.tar.bz2
gsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.tar.lz
gsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.tar.xz
gsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.tar.zst
gsoc2013-evolution-695591dd9377db47cd34b169e7c12baa2bc581e6.zip
Make ETable use EScrollFrame instead of GtkScrolledWindow.
svn path=/trunk/; revision=3515
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r--widgets/table/e-table.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index 6d0f6409d9..d88daac5db 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -20,6 +20,9 @@
#include <gtk/gtksignal.h>
#include <gnome-xml/parser.h>
#include <gnome-xml/xmlmemory.h>
+
+#include "widgets/misc/e-scroll-frame.h"
+
#include "e-util/e-util.h"
#include "e-util/e-xml-utils.h"
#include "e-util/e-canvas.h"
@@ -447,7 +450,7 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm,
int no_header;
int row = 0;
- GtkWidget *scrolledwindow;
+ GtkWidget *scrollframe;
xmlRoot = xmlDocGetRootElement (xmlSpec);
xmlColumns = e_xml_get_child_by_name (xmlRoot, "columns-shown");
@@ -480,23 +483,26 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm,
e_table_setup_table (e_table, full_header, e_table->header, etm);
e_table_fill_table (e_table, etm);
- scrolledwindow = gtk_scrolled_window_new (
+ scrollframe = e_scroll_frame_new (
gtk_layout_get_hadjustment (GTK_LAYOUT (e_table->table_canvas)),
gtk_layout_get_vadjustment (GTK_LAYOUT (e_table->table_canvas)));
gtk_layout_get_vadjustment (GTK_LAYOUT (e_table->table_canvas))->step_increment = 20;
gtk_adjustment_changed(gtk_layout_get_vadjustment (GTK_LAYOUT (e_table->table_canvas)));
+
+ e_scroll_frame_set_shadow_type (E_SCROLL_FRAME (scrollframe),
+ GTK_SHADOW_IN);
- gtk_scrolled_window_set_policy (
- GTK_SCROLLED_WINDOW (scrolledwindow),
+ e_scroll_frame_set_policy (
+ E_SCROLL_FRAME (scrollframe),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_container_add (
- GTK_CONTAINER (scrolledwindow),
+ GTK_CONTAINER (scrollframe),
GTK_WIDGET (e_table->table_canvas));
- gtk_widget_show (scrolledwindow);
+ gtk_widget_show (scrollframe);
if (!no_header) {
/*
@@ -513,7 +519,7 @@ et_real_construct (ETable *e_table, ETableHeader *full_header, ETableModel *etm,
* The body
*/
gtk_table_attach (
- GTK_TABLE (e_table), GTK_WIDGET (scrolledwindow),
+ GTK_TABLE (e_table), GTK_WIDGET (scrollframe),
0, 1, 0 + row, 1 + row,
GTK_FILL | GTK_EXPAND,
GTK_FILL | GTK_EXPAND, 0, 0);