Fix warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@10538 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
11e907770a
commit
a74310ebbe
@ -132,10 +132,9 @@ static void
|
|||||||
gtk_custom_hruler_draw_ticks (GtkCustomRuler * ruler)
|
gtk_custom_hruler_draw_ticks (GtkCustomRuler * ruler)
|
||||||
{
|
{
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GdkGC *gc, *bg_gc;
|
GdkGC *gc;
|
||||||
gint i;
|
gint i;
|
||||||
GtkCustomRulerMark *marks;
|
GtkCustomRulerMark *marks;
|
||||||
gint xthickness;
|
|
||||||
gint ythickness;
|
gint ythickness;
|
||||||
gint nmarks;
|
gint nmarks;
|
||||||
gint max_chars;
|
gint max_chars;
|
||||||
@ -152,14 +151,12 @@ gtk_custom_hruler_draw_ticks (GtkCustomRuler * ruler)
|
|||||||
widget = GTK_WIDGET (ruler);
|
widget = GTK_WIDGET (ruler);
|
||||||
|
|
||||||
gc = widget->style->fg_gc[GTK_STATE_NORMAL];
|
gc = widget->style->fg_gc[GTK_STATE_NORMAL];
|
||||||
bg_gc = widget->style->bg_gc[GTK_STATE_NORMAL];
|
|
||||||
|
|
||||||
layout = gtk_widget_create_pango_layout (widget, "012456789");
|
layout = gtk_widget_create_pango_layout (widget, "012456789");
|
||||||
pango_layout_get_extents (layout, &ink_rect, &logical_rect);
|
pango_layout_get_extents (layout, &ink_rect, &logical_rect);
|
||||||
|
|
||||||
digit_offset = ink_rect.y;
|
digit_offset = ink_rect.y;
|
||||||
|
|
||||||
xthickness = widget->style->xthickness;
|
|
||||||
ythickness = widget->style->ythickness;
|
ythickness = widget->style->ythickness;
|
||||||
|
|
||||||
gtk_paint_box (widget->style, ruler->backing_store,
|
gtk_paint_box (widget->style, ruler->backing_store,
|
||||||
|
Loading…
Reference in New Issue
Block a user