summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-09-18 20:06:48 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-09-18 20:06:48 +0000
commita15d5c36f6e100ff512ca3fc2ff034d3cbd5f572 (patch)
tree977167ee56376a78020bac27816be830a5c04e00 /tests
parentc45ee0bf85dd61abb6a8469265274c2265772af9 (diff)
downloadgtk+-a15d5c36f6e100ff512ca3fc2ff034d3cbd5f572.tar.gz
Fix up for changes to PangoFontDescription.
Wed Sep 12 11:21:14 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkcellrenderertext.[ch] gtk/gtktexttag.[ch] gtk/gtktextview.c tests/testgtk.c: Fix up for changes to PangoFontDescription. * gtk/gtkentry.c gtk/gtkclist.c gtk/gtkcellrenderertext.c gtk/gtkspinbutton.c: Fix up for change to PangoMetrics structure. * gtk/gtkfontsel.c: Fix up for new Pango font listing API. * gtk/gtkstyle.[ch]: Add gtk_style_get_font/set_font to replace direct access to style->font. Deprecate gtk_style_ref/unref. * gtk/gtkclist.c gtk/gtkctree.c gtk/gtkstyle.c gtk/gtkwidget.c: Remove gtk_style_ref/unref with g_object_ref/unref. * gtk/gtkcalendar.c: Remove leftover macros accessing style->font. * gtk/gtkhruler.c (gtk_hruler_draw_ticks): Remove unused variable. * gtk/gtktext.c gtk/gtklabel.c: Use gtk_style_get_font() instead of style->font.
Diffstat (limited to 'tests')
-rw-r--r--tests/testgtk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 2d6e320729..8193d79736 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -5140,8 +5140,8 @@ create_clist (void)
style->fg[GTK_STATE_NORMAL] = col1;
style->base[GTK_STATE_NORMAL] = col2;
- style->font_desc->size = 14 * PANGO_SCALE;
- style->font_desc->weight = PANGO_WEIGHT_BOLD;
+ pango_font_description_set_size (style->font_desc, 14 * PANGO_SCALE);
+ pango_font_description_set_weight (style->font_desc, PANGO_WEIGHT_BOLD);
for (i = 0; i < 10; i++)
{
@@ -10602,7 +10602,7 @@ create_styles (void)
rc_style = gtk_rc_style_new ();
- rc_style->font_desc = font_desc;
+ rc_style->font_desc = pango_font_description_copy (font_desc);
rc_style->color_flags[GTK_STATE_NORMAL] = GTK_RC_FG | GTK_RC_BG;
rc_style->color_flags[GTK_STATE_PRELIGHT] = GTK_RC_FG | GTK_RC_BG;
rc_style->color_flags[GTK_STATE_ACTIVE] = GTK_RC_FG | GTK_RC_BG;