From ffad0d32ceef317c2995378f654e8214629948f0 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 6 Mar 2000 08:34:34 +0000 Subject: Use the style's font if lucidasans-10 is not found. 2000-03-06 Christopher James Lahey * e-table-group-container.c: Use the style's font if lucidasans-10 is not found. svn path=/trunk/; revision=2073 --- widgets/e-table/ChangeLog | 5 +++++ widgets/e-table/e-table-group-container.c | 5 +++++ widgets/table/e-table-group-container.c | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'widgets') diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog index c4c99971e9..5dad172bcb 100644 --- a/widgets/e-table/ChangeLog +++ b/widgets/e-table/ChangeLog @@ -1,3 +1,8 @@ +2000-03-06 Christopher James Lahey + + * e-table-group-container.c: Use the style's font if lucidasans-10 + is not found. + 2000-03-06 Christopher James Lahey * e-table-header-item.c, e-table-header-item.h: Made it so that diff --git a/widgets/e-table/e-table-group-container.c b/widgets/e-table/e-table-group-container.c index f9ecaf4377..4f11c75f41 100644 --- a/widgets/e-table/e-table-group-container.c +++ b/widgets/e-table/e-table-group-container.c @@ -213,6 +213,11 @@ e_table_group_container_construct (GnomeCanvasGroup *parent, ETableGroupContaine etgc->ascending = ascending; etgc->font = gdk_font_load ("lucidasans-10"); + if (!etgc->font){ + etgc->font = GTK_WIDGET(GNOME_CANVAS_ITEM(etgc)->canvas)->style->font; + + gdk_font_ref (etgc->font); + } etgc->open = TRUE; #if 0 etgc->transparent = transparent; diff --git a/widgets/table/e-table-group-container.c b/widgets/table/e-table-group-container.c index f9ecaf4377..4f11c75f41 100644 --- a/widgets/table/e-table-group-container.c +++ b/widgets/table/e-table-group-container.c @@ -213,6 +213,11 @@ e_table_group_container_construct (GnomeCanvasGroup *parent, ETableGroupContaine etgc->ascending = ascending; etgc->font = gdk_font_load ("lucidasans-10"); + if (!etgc->font){ + etgc->font = GTK_WIDGET(GNOME_CANVAS_ITEM(etgc)->canvas)->style->font; + + gdk_font_ref (etgc->font); + } etgc->open = TRUE; #if 0 etgc->transparent = transparent; -- cgit