aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-03-27 10:45:04 +0800
committerMiguel de Icaza <miguel@src.gnome.org>2000-03-27 10:45:04 +0800
commit09c05cbc769e87dd6715566d57ab153d0664c34c (patch)
treed9f46b14481912e5f5f4ef4b4bd4517319c2a393 /widgets/table
parentbfdba248a1719c6eef0b0c69bd0cde94940060b1 (diff)
downloadgsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.tar
gsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.tar.gz
gsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.tar.bz2
gsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.tar.lz
gsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.tar.xz
gsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.tar.zst
gsoc2013-evolution-09c05cbc769e87dd6715566d57ab153d0664c34c.zip
Remove warning from here.
2000-03-26 Miguel de Icaza <miguel@gnu.org> * e-table-header-item.c (ethi_realize): Remove warning from here. * test-table.c (table_browser_test): Use ECanvas, not GnomeCanvas, to support reflow. * test-cols.c (multi_cols_test): ditto * e-table.c (e_table_setup_header): ditto * e-table-header-item.c (ethi_font_load): Replace font. (ethi_realize): ditto. svn path=/trunk/; revision=2172
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-header-item.c8
-rw-r--r--widgets/table/e-table.c2
-rw-r--r--widgets/table/test-check.c2
-rw-r--r--widgets/table/test-cols.c2
-rw-r--r--widgets/table/test-table.c2
5 files changed, 7 insertions, 9 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c
index b079debb1a..5faa0d7da8 100644
--- a/widgets/table/e-table-header-item.c
+++ b/widgets/table/e-table-header-item.c
@@ -118,7 +118,7 @@ ethi_font_load (ETableHeaderItem *ethi, char *font)
ethi->font = gdk_fontset_load (font);
if (ethi->font == NULL)
- ethi->font = gdk_font_load ("fixed");
+ ethi->font = gdk_font_load ("-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1");
ethi->height = ethi->font->ascent + ethi->font->descent + PADDING;
if ( ethi->height < MIN_ARROW_SIZE + 4 + PADDING )
@@ -469,10 +469,8 @@ ethi_realize (GnomeCanvasItem *item)
gnome_canvas_get_color (item->canvas, "black", &c);
gdk_gc_set_foreground (ethi->gc, &c);
- if (!ethi->font){
- g_warning ("Font had not been set for this ETableHeader");
- ethi_font_load (ethi, "fixed");
- }
+ if (!ethi->font)
+ ethi_font_load (ethi, "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-iso8859-1");
/*
* Now, configure DnD
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index dfd3dda162..2a2458adbd 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -140,7 +140,7 @@ e_table_setup_header (ETable *e_table)
{
xmlNode *root;
xmlNode *grouping;
- e_table->header_canvas = GNOME_CANVAS (gnome_canvas_new ());
+ e_table->header_canvas = GNOME_CANVAS (e_canvas_new ());
gtk_widget_show (GTK_WIDGET (e_table->header_canvas));
diff --git a/widgets/table/test-check.c b/widgets/table/test-check.c
index 7894898255..6110c367e3 100644
--- a/widgets/table/test-check.c
+++ b/widgets/table/test-check.c
@@ -150,7 +150,7 @@ check_test (void)
* GUI
*/
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- canvas = gnome_canvas_new ();
+ canvas = e_canvas_new ();
gtk_signal_connect (GTK_OBJECT (canvas), "size_allocate",
GTK_SIGNAL_FUNC (set_canvas_size), NULL);
diff --git a/widgets/table/test-cols.c b/widgets/table/test-cols.c
index d65b9945b7..f8997ceffd 100644
--- a/widgets/table/test-cols.c
+++ b/widgets/table/test-cols.c
@@ -170,7 +170,7 @@ multi_cols_test (void)
* GUI
*/
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- canvas = gnome_canvas_new ();
+ canvas = e_canvas_new ();
gtk_signal_connect (GTK_OBJECT (canvas), "size_allocate",
GTK_SIGNAL_FUNC (set_canvas_size), NULL);
diff --git a/widgets/table/test-table.c b/widgets/table/test-table.c
index 341013e92c..70c1e11ce1 100644
--- a/widgets/table/test-table.c
+++ b/widgets/table/test-table.c
@@ -239,7 +239,7 @@ table_browser_test (void)
* Setup GUI
*/
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- canvas = gnome_canvas_new ();
+ canvas = e_canvas_new ();
gtk_signal_connect (GTK_OBJECT (canvas), "size_allocate",
GTK_SIGNAL_FUNC (set_canvas_size), NULL);