pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gtk2-engines Fix C99isms so that this (hopefully) ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/500a61021d2c
branches:  trunk
changeset: 510798:500a61021d2c
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Tue Apr 04 13:41:47 2006 +0000

description:
Fix C99isms so that this (hopefully) builds in NetBSD 1.6.2.

diffstat:

 x11/gtk2-engines/distinfo         |   3 ++-
 x11/gtk2-engines/patches/patch-aa |  35 +++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletions(-)

diffs (50 lines):

diff -r 9942107902a9 -r 500a61021d2c x11/gtk2-engines/distinfo
--- a/x11/gtk2-engines/distinfo Tue Apr 04 13:27:44 2006 +0000
+++ b/x11/gtk2-engines/distinfo Tue Apr 04 13:41:47 2006 +0000
@@ -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 -r 9942107902a9 -r 500a61021d2c x11/gtk2-engines/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk2-engines/patches/patch-aa Tue Apr 04 13:41:47 2006 +0000
@@ -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)
+               {



Home | Main Index | Thread Index | Old Index