[gtk-list] [patch] my scrollbar (971116) patch update




> gtk-fortier-971121.patch.README:

This patch is a replacement for the gtk-fortier-971116.patch, which
is now OBSOLETE.

Yesterday I found a really stupid bug (veryveryvery stupid), in this
patch. Here is a small diff to correct your source tree if the 971116
patch is already applied (this file is NOT included in the patch.gz).

--- gtk+-971109.orig/gtk/gtkhscrollbar.c	Thu Nov 20 19:19:07 1997
+++ gtk+-971109/gtk/gtkhscrollbar.c	Thu Nov 20 19:45:23 1997
@@ -125,7 +125,7 @@
   requisition = &widget->requisition;
 
   hscrollbar->slider_bump = gdk_pixmap_create_from_xpm_d (widget->window,
-                                        &mask, widget->style->black_gc,
+                                        &mask, &widget->style->black,
 					slider_default_bump);
   gdk_window_get_size (hscrollbar->slider_bump, &width, &height);
   hscrollbar->slider_bump_gc = gdk_gc_new (hscrollbar->slider_bump);
--- gtk+-971109.orig/gtk/gtkvscrollbar.c	Thu Nov 20 19:19:22 1997
+++ gtk+-971109/gtk/gtkvscrollbar.c	Thu Nov 20 19:45:48 1997
@@ -125,7 +125,7 @@
   requisition = &widget->requisition;
 
   vscrollbar->slider_bump = gdk_pixmap_create_from_xpm_d (widget->window,
-                                        &mask, widget->style->black_gc,
+                                        &mask, &widget->style->black,
                                         slider_default_bump);
   gdk_window_get_size (vscrollbar->slider_bump, &width, &height);
   vscrollbar->slider_bump_gc = gdk_gc_new (vscrollbar->slider_bump);


-------------- Old 971116 README following ----------------------

This adds a pixmap dot (like in the NeXtaw lib) in the slider of the
horizontal & vertical scrollbars.
The pixmaps are the same in both files (hscrollbar & vscrollbar) now,
but it's quite easy to change that (sorry, I don't know gtkstyle 
enough).

I uploaded a small screen shot in the incoming directory to show you
the result before you apply the patch, but I don't know if it'll make
its way to the patch directory :). It's 4.5 Ko and more descriptive
than a long explaination.

The patch also corrects a minor (hard to trigger) bug in vscrollbar.c,
and hscrollbar don't have the focus anymore now.

The patch is against the 971109 version of gtk.

Patrice.



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