]> Pileus Git - ~andy/gtk/commitdiff
Fix for changes to draw_focus.
authorOwen Taylor <otaylor@redhat.com>
Fri, 18 Jan 2002 23:14:45 +0000 (23:14 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 18 Jan 2002 23:14:45 +0000 (23:14 +0000)
Fri Jan 18 18:14:11 2002  Owen Taylor  <otaylor@redhat.com>

        * src/pixbuf-draw.c (draw_focus): Fix for changes to draw_focus.

modules/engines/pixbuf/ChangeLog
modules/engines/pixbuf/pixbuf-draw.c

index 989b4a129bccf3eb604799ca5ccf718e69a89ced..7ee358dd544dfc1f0cd31852fed4f8fcddf901d2 100644 (file)
@@ -1,3 +1,7 @@
+Fri Jan 18 18:14:11 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * src/pixbuf-draw.c (draw_focus): Fix for changes to draw_focus.
+
 2001-09-21  Hans Breuer  <hans@breuer.org>
 
        * src/pixbuf-rc-style-c :  GtkRcStyle::parse has a GtkSettings
index b6642f9f22dc9a0957c33d8cc1e81bdd2cbf49bb..f9687bc0067ffa654f6fd8e50efae13558511670 100644 (file)
@@ -970,6 +970,7 @@ draw_extension (GtkStyle       *style,
 static void
 draw_focus (GtkStyle     *style,
            GdkWindow    *window,
+           GtkStateType  state_type,
            GdkRectangle *area,
            GtkWidget    *widget,
            const gchar  *detail,
@@ -983,19 +984,13 @@ draw_focus (GtkStyle     *style,
   g_return_if_fail(style != NULL);
   g_return_if_fail(window != NULL);
 
-  /* Why? */
-  if (width >=0)
-    width++;
-  if (height >=0)
-    height++;
-
   match_data.function = TOKEN_D_FOCUS;
   match_data.detail = (gchar *)detail;
   match_data.flags = 0;
   
   if (!draw_simple_image (style, window, area, widget, &match_data, TRUE, FALSE,
                          x, y, width, height))
-    parent_class->draw_focus (style, window, area, widget, detail,
+    parent_class->draw_focus (style, window, state_type, area, widget, detail,
                              x, y, width, height);
 }