diff options
author | Taybin Rutkin <taybin@taybin.com> | 2005-09-25 19:24:25 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2005-09-25 19:24:25 +0000 |
commit | f872433e8e81ba5a3a9ebffa32c6ddd9e3358f07 (patch) | |
tree | b683884d626c0b26103cff341df50d8a9713c7be /gtk2_ardour/gtk-custom-hruler.c | |
parent | aa62659c78627fb3821e9cb910f198aa453a1eaf (diff) |
It begins.
git-svn-id: svn://localhost/trunk/ardour2@27 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/gtk-custom-hruler.c')
-rw-r--r-- | gtk2_ardour/gtk-custom-hruler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/gtk-custom-hruler.c b/gtk2_ardour/gtk-custom-hruler.c index d028d6472e..840b17ece3 100644 --- a/gtk2_ardour/gtk-custom-hruler.c +++ b/gtk2_ardour/gtk-custom-hruler.c @@ -85,8 +85,8 @@ gtk_custom_hruler_init (GtkCustomHRuler * custom_hruler) GtkWidget *widget; widget = GTK_WIDGET (custom_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; } @@ -143,7 +143,7 @@ gtk_custom_hruler_draw_ticks (GtkCustomRuler * ruler) gc = widget->style->fg_gc[GTK_STATE_NORMAL]; bg_gc = widget->style->bg_gc[GTK_STATE_NORMAL]; - font = widget->style->font; + font = gtk_style_get_font(widget->style); gtk_paint_box (widget->style, ruler->backing_store, GTK_STATE_NORMAL, GTK_SHADOW_NONE, @@ -208,8 +208,8 @@ gtk_custom_hruler_draw_pos (GtkCustomRuler * ruler) if (GTK_WIDGET_DRAWABLE (ruler) && (ruler->upper - ruler->lower) > 0) { 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; |