diff options
author | jmmv <jmmv> | 2006-04-04 13:41:47 +0000 |
---|---|---|
committer | jmmv <jmmv> | 2006-04-04 13:41:47 +0000 |
commit | 4b6052ee3875171f064d697dc85c3f475e5e7062 (patch) | |
tree | 4f13b9a454472a6d3cea1ccee90b2744a374e7d7 | |
parent | 4d69db66deafb07e18dd0b57359c4d9b5e66d7a8 (diff) | |
download | pkgsrc-4b6052ee3875171f064d697dc85c3f475e5e7062.tar.gz |
Fix C99isms so that this (hopefully) builds in NetBSD 1.6.2.
-rw-r--r-- | x11/gtk2-engines/distinfo | 3 | ||||
-rw-r--r-- | x11/gtk2-engines/patches/patch-aa | 35 |
2 files changed, 37 insertions, 1 deletions
diff --git a/x11/gtk2-engines/distinfo b/x11/gtk2-engines/distinfo index 9496b2036d3..9f3b275eea0 100644 --- a/x11/gtk2-engines/distinfo +++ b/x11/gtk2-engines/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.14 2006/03/30 21:11:32 jmmv Exp $ +$NetBSD: distinfo,v 1.15 2006/04/04 13:41:47 jmmv Exp $ SHA1 (gtk-engines-2.6.8.tar.bz2) = 310f062341262a5dc05a138db29fcb00d360dd84 RMD160 (gtk-engines-2.6.8.tar.bz2) = 8e2b939eb88cd6aaafd357317124f4c0193dcbbe Size (gtk-engines-2.6.8.tar.bz2) = 463097 bytes +SHA1 (patch-aa) = ded272fe80c98d656eb9c23897e8f4bd4ffd4cfa 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) + { |