diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-06-11 06:48:14 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-06-11 06:48:14 +0800 |
commit | 695591dd9377db47cd34b169e7c12baa2bc581e6 (patch) | |
tree | cd878e51ce8e84466346c5cb53e472999467255b | |
parent | 8139fd12a7fcc74935a4d318f0f9554f2e2b03c2 (diff) | |
download | gsoc2013-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
-rw-r--r-- | addressbook/contact-editor/Makefile.am | 1 | ||||
-rw-r--r-- | addressbook/gui/component/Makefile.am | 1 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/Makefile.am | 1 | ||||
-rw-r--r-- | addressbook/gui/minicard/Makefile.am | 7 | ||||
-rw-r--r-- | addressbook/gui/widgets/Makefile.am | 7 | ||||
-rw-r--r-- | widgets/e-table/ChangeLog | 13 | ||||
-rw-r--r-- | widgets/e-table/Makefile.am | 5 | ||||
-rw-r--r-- | widgets/e-table/e-table.c | 20 | ||||
-rw-r--r-- | widgets/table/e-table.c | 20 |
9 files changed, 57 insertions, 18 deletions
diff --git a/addressbook/contact-editor/Makefile.am b/addressbook/contact-editor/Makefile.am index 1ed9f8b0c3..8ad4b7925e 100644 --- a/addressbook/contact-editor/Makefile.am +++ b/addressbook/contact-editor/Makefile.am @@ -38,6 +38,7 @@ contact_editor_test_LDADD = \ $(GNOMEGNORBA_LIBS) \ $(BONOBO_GNOME_LIBS) \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a \ $(EXTRA_GNOME_LIBS) diff --git a/addressbook/gui/component/Makefile.am b/addressbook/gui/component/Makefile.am index 35939f8940..c5cc80afb7 100644 --- a/addressbook/gui/component/Makefile.am +++ b/addressbook/gui/component/Makefile.am @@ -59,6 +59,7 @@ evolution_addressbook_LDADD = \ $(top_builddir)/libversit/libversit.la \ $(top_builddir)/widgets/e-text/libetext.a \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/addressbook/printing/libecontactprint.a diff --git a/addressbook/gui/contact-editor/Makefile.am b/addressbook/gui/contact-editor/Makefile.am index 1ed9f8b0c3..8ad4b7925e 100644 --- a/addressbook/gui/contact-editor/Makefile.am +++ b/addressbook/gui/contact-editor/Makefile.am @@ -38,6 +38,7 @@ contact_editor_test_LDADD = \ $(GNOMEGNORBA_LIBS) \ $(BONOBO_GNOME_LIBS) \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a \ $(EXTRA_GNOME_LIBS) diff --git a/addressbook/gui/minicard/Makefile.am b/addressbook/gui/minicard/Makefile.am index 2f9cfdf776..0eb7946ac5 100644 --- a/addressbook/gui/minicard/Makefile.am +++ b/addressbook/gui/minicard/Makefile.am @@ -52,8 +52,9 @@ minicard_test_LDADD = \ $(top_builddir)/libversit/libversit.la \ $(top_builddir)/addressbook/ename/libename.la \ $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ - $(top_builddir)/widgets/e-table/libetable.a \ - $(top_builddir)/e-util/libeutil.la \ + $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ + $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a reflow_test_SOURCES = \ @@ -70,6 +71,7 @@ reflow_test_LDADD = \ $(top_builddir)/addressbook/ename/libename.la \ $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a @@ -87,5 +89,6 @@ minicard_view_test_LDADD = \ $(top_builddir)/addressbook/ename/libename.la \ $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a diff --git a/addressbook/gui/widgets/Makefile.am b/addressbook/gui/widgets/Makefile.am index 2f9cfdf776..0eb7946ac5 100644 --- a/addressbook/gui/widgets/Makefile.am +++ b/addressbook/gui/widgets/Makefile.am @@ -52,8 +52,9 @@ minicard_test_LDADD = \ $(top_builddir)/libversit/libversit.la \ $(top_builddir)/addressbook/ename/libename.la \ $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ - $(top_builddir)/widgets/e-table/libetable.a \ - $(top_builddir)/e-util/libeutil.la \ + $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ + $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a reflow_test_SOURCES = \ @@ -70,6 +71,7 @@ reflow_test_LDADD = \ $(top_builddir)/addressbook/ename/libename.la \ $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a @@ -87,5 +89,6 @@ minicard_view_test_LDADD = \ $(top_builddir)/addressbook/ename/libename.la \ $(top_builddir)/addressbook/contact-editor/libecontacteditor.a \ $(top_builddir)/widgets/e-table/libetable.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(top_builddir)/widgets/e-text/libetext.a diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index 5a6ded8c04..dfaec4ac67 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,16 @@ +2000-06-11 Ettore Perazzoli <ettore@helixcode.com> + + * Makefile.am (table_test_LDADD): Link with libemiscwidgets.a. + (table_size_test_LDADD): Likewise. + (table_example_1_LDADD): Likewise. + (table_example_2_LDADD): Likewise. + (tree_example_1_LDADD): Likewise. + +2000-06-10 Ettore Perazzoli <ettore@helixcode.com> + + * e-table.c (et_real_construct): EScrollFrame instead of + GtkScrolledWindow. + 2000-06-10 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added $(GNOME_PRINT_LIBS) to all of the LDADDs. diff --git a/widgets/e-table/Makefile.am b/widgets/e-table/Makefile.am index 5f7af50a9a..9f21f45cd2 100644 --- a/widgets/e-table/Makefile.am +++ b/widgets/e-table/Makefile.am @@ -95,6 +95,7 @@ table_test_LDADD = \ libetable.a \ $(EXTRA_GNOME_LIBS) \ $(top_builddir)/widgets/e-text/libetext.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(GNOME_PRINT_LIBS) @@ -107,6 +108,7 @@ table_size_test_LDADD = \ libetable.a \ $(EXTRA_GNOME_LIBS) \ $(top_builddir)/widgets/e-text/libetext.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(GNOME_PRINT_LIBS) @@ -119,6 +121,7 @@ table_example_1_LDADD = \ libetable.a \ $(EXTRA_GNOME_LIBS) \ $(top_builddir)/widgets/e-text/libetext.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(GNOME_PRINT_LIBS) @@ -131,6 +134,7 @@ table_example_2_LDADD = \ libetable.a \ $(EXTRA_GNOME_LIBS) \ $(top_builddir)/widgets/e-text/libetext.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(GNOME_PRINT_LIBS) @@ -145,6 +149,7 @@ tree_example_1_LDADD = \ libetable.a \ $(EXTRA_GNOME_LIBS) \ $(top_builddir)/widgets/e-text/libetext.a \ + $(top_builddir)/widgets/misc/libemiscwidgets.a \ $(top_builddir)/e-util/libeutil.la \ $(GNOME_PRINT_LIBS) diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index 6d0f6409d9..d88daac5db 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-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); 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); |