diff options
author | jmmv <jmmv@pkgsrc.org> | 2006-04-04 13:41:47 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2006-04-04 13:41:47 +0000 |
commit | 26ac483f5f6571e7007eb28ee6584739ebe42573 (patch) | |
tree | 4f13b9a454472a6d3cea1ccee90b2744a374e7d7 /x11/gtk2-engines/patches | |
parent | db02c6d8b610a851a4e9d9350b659cde04f317a4 (diff) | |
download | pkgsrc-26ac483f5f6571e7007eb28ee6584739ebe42573.tar.gz |
Fix C99isms so that this (hopefully) builds in NetBSD 1.6.2.
Diffstat (limited to 'x11/gtk2-engines/patches')
-rw-r--r-- | x11/gtk2-engines/patches/patch-aa | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/x11/gtk2-engines/patches/patch-aa b/x11/gtk2-engines/patches/patch-aa new file mode 100644 index 00000000000..5c7a611cae7 --- /dev/null +++ b/x11/gtk2-engines/patches/patch-aa @@ -0,0 +1,35 @@ +$NetBSD: patch-aa,v 1.7 2006/04/04 13:41:47 jmmv Exp $ + +--- engines/clearlooks/src/clearlooks_style.c.orig 2006-03-11 13:14:40.000000000 +0100 ++++ engines/clearlooks/src/clearlooks_style.c +@@ -974,23 +974,23 @@ draw_box (DRAW_ARGS) + else if (DETAIL ("trough") && + (GTK_IS_VSCALE (widget) || GTK_IS_HSCALE (widget))) + { +- gint slider_length; ++ gint fill_size, slider_length; + GdkGC *inner = clearlooks_style->shade_gc[3], + *outer = clearlooks_style->shade_gc[5], + *shadow = clearlooks_style->shade_gc[4]; + GdkColor upper_color = *clearlooks_get_spot_color (CLEARLOOKS_RC_STYLE (style->rc_style)), + lower_color; + +- gtk_widget_style_get (widget, "slider-length", &slider_length, NULL); +- + GtkAdjustment *adjustment = gtk_range_get_adjustment (GTK_RANGE (widget)); + + GtkOrientation orientation = GTK_RANGE (widget)->orientation; + +- gint fill_size = ((orientation ? height : width) - slider_length) * +- (1 / ((adjustment->upper - adjustment->lower) / +- (adjustment->value - adjustment->lower))) +- + slider_length / 2; ++ gtk_widget_style_get (widget, "slider-length", &slider_length, NULL); ++ ++ fill_size = ((orientation ? height : width) - slider_length) * ++ (1 / ((adjustment->upper - adjustment->lower) / ++ (adjustment->value - adjustment->lower))) ++ + slider_length / 2; + + if (orientation == GTK_ORIENTATION_HORIZONTAL) + { |