summaryrefslogtreecommitdiff
path: root/gtk/gtkhruler.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@src.gnome.org>2000-05-26 03:08:05 +0000
committerHavoc Pennington <hp@src.gnome.org>2000-05-26 03:08:05 +0000
commit3143ddb0df0c1c9ed7d22397b9d72534844f5c4b (patch)
tree650d6081f6ecf2e797141078f23478b1cff265cb /gtk/gtkhruler.c
parent5b894c227873a583d01c74ffc8d7f50aca7ca80f (diff)
downloadgtk+-gdk-object.tar.gz
GtkStyle becomes a GObject, and xthickness/ythickness moved to instance structgdk-object
Diffstat (limited to 'gtk/gtkhruler.c')
-rw-r--r--gtk/gtkhruler.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkhruler.c b/gtk/gtkhruler.c
index d827de748a..1d52de0ee7 100644
--- a/gtk/gtkhruler.c
+++ b/gtk/gtkhruler.c
@@ -92,8 +92,8 @@ gtk_hruler_init (GtkHRuler *hruler)
GtkWidget *widget;
widget = GTK_WIDGET (hruler);
- widget->requisition.width = widget->style->klass->xthickness * 2 + 1;
- widget->requisition.height = widget->style->klass->ythickness * 2 + RULER_HEIGHT;
+ widget->requisition.width = widget->style->xthickness * 2 + 1;
+ widget->requisition.height = widget->style->ythickness * 2 + RULER_HEIGHT;
}
@@ -163,8 +163,8 @@ gtk_hruler_draw_ticks (GtkRuler *ruler)
bg_gc = widget->style->bg_gc[GTK_STATE_NORMAL];
font = widget->style->font;
- xthickness = widget->style->klass->xthickness;
- ythickness = widget->style->klass->ythickness;
+ xthickness = widget->style->xthickness;
+ ythickness = widget->style->ythickness;
digit_height = font->ascent; /* assume descent == 0 ? */
width = widget->allocation.width;
@@ -276,8 +276,8 @@ gtk_hruler_draw_pos (GtkRuler *ruler)
widget = GTK_WIDGET (ruler);
gc = widget->style->fg_gc[GTK_STATE_NORMAL];
- xthickness = widget->style->klass->xthickness;
- ythickness = widget->style->klass->ythickness;
+ xthickness = widget->style->xthickness;
+ ythickness = widget->style->ythickness;
width = widget->allocation.width;
height = widget->allocation.height - ythickness * 2;