[gtk-list] [patch] scrolled_window: scrollbar_spacing




This patch corrects a bug in the scrolled_window widget.
The new resource scrollbar_spacing which sets the width
between the viewport and a scrollbar is not initialized.


Patch is against version 0.99.1.


Patrice.

I send the patch to the list as it's very short

---------------------------8<--------------------------
diff -cr gtk+-0.99.1.orig/gtk/gtkscrolledwindow.c gtk+-0.99.1/gtk/gtkscrolledwindow.c
*** gtk+-0.99.1.orig/gtk/gtkscrolledwindow.c	Fri Jan  2 08:31:04 1998
--- gtk+-0.99.1/gtk/gtkscrolledwindow.c	Sat Jan  3 16:52:25 1998
***************
*** 96,101 ****
--- 96,103 ----
    container_class->add = gtk_scrolled_window_add;
    container_class->remove = gtk_scrolled_window_remove;
    container_class->foreach = gtk_scrolled_window_foreach;
+ 
+   class->scrollbar_spacing = 5;
  }
  
  static void
---------------------------8<--------------------------



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