Patch for Gtk[VH]Scrollbar bug



I believe there is a tiny bug in gtk[vh]scrollbar.c. When getting the
argument "adjustment", the GtkRange is returned, instead of the actual
adjustment. The attached patch fixes that.

Richard

Index: gtkhscrollbar.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkhscrollbar.c,v
retrieving revision 1.15
diff -u -u -r1.15 gtkhscrollbar.c
--- gtkhscrollbar.c	1999/02/24 07:34:56	1.15
+++ gtkhscrollbar.c	2000/09/05 08:44:33
@@ -145,7 +145,7 @@
   switch (arg_id)
     {
     case ARG_ADJUSTMENT:
-      GTK_VALUE_POINTER (*arg) = GTK_RANGE (hscrollbar);
+      GTK_VALUE_POINTER (*arg) = gtk_range_get_adjustment (GTK_RANGE (hscrollbar));
       break;
     default:
       arg->type = GTK_TYPE_INVALID;
Index: gtkvscrollbar.c
===================================================================
RCS file: /cvs/gnome/gtk+/gtk/gtkvscrollbar.c,v
retrieving revision 1.15
diff -u -u -r1.15 gtkvscrollbar.c
--- gtkvscrollbar.c	1999/02/24 07:37:05	1.15
+++ gtkvscrollbar.c	2000/09/05 08:44:33
@@ -145,7 +145,7 @@
   switch (arg_id)
     {
     case ARG_ADJUSTMENT:
-      GTK_VALUE_POINTER (*arg) = GTK_RANGE (vscrollbar);
+      GTK_VALUE_POINTER (*arg) = gtk_range_get_adjustment (GTK_RANGE (vscrollbar));
       break;
     default:
       arg->type = GTK_TYPE_INVALID;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]