]> Pileus Git - ~andy/gtk/commitdiff
Remove suspicious code. (#325295, Alexander Nedotsukov)
authorMatthias Clasen <mclasen@redhat.com>
Fri, 10 Mar 2006 19:15:40 +0000 (19:15 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 10 Mar 2006 19:15:40 +0000 (19:15 +0000)
2006-03-10  Matthias Clasen  <mclasen@redhat.com>

* pixbuf-draw.c (draw_extension): Remove suspicious
code.  (#325295, Alexander Nedotsukov)

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

index 68f29c810ef7351b0bc92da14c0b3c9627f0b0cd..3f524b335ec984a196cde048d003ab63336097df 100644 (file)
@@ -1,3 +1,8 @@
+2006-03-10  Matthias Clasen  <mclasen@redhat.com>
+
+       * pixbuf-draw.c (draw_extension): Remove suspicious
+       code.  (#325295, Alexander Nedotsukov)
+
 2006-01-17  Matthias Clasen  <mclasen@redhat.com>
 
        * pixbuf-render.c: If the src positions for gradients
index 60cbefc9056099806024278c93f3878e1f10d0c1..fcaae96789d9f0d719376603fcef19153d0b96ba 100644 (file)
@@ -873,15 +873,9 @@ draw_extension (GtkStyle       *style,
 {
   ThemeMatchData match_data;
   
-  g_return_if_fail(style != NULL);
-  g_return_if_fail(window != NULL);
+  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_EXTENSION;
   match_data.detail = (gchar *)detail;
   match_data.flags = THEME_MATCH_SHADOW | THEME_MATCH_STATE | THEME_MATCH_GAP_SIDE;
@@ -909,8 +903,8 @@ draw_focus (GtkStyle     *style,
 {
   ThemeMatchData match_data;
   
-  g_return_if_fail(style != NULL);
-  g_return_if_fail(window != NULL);
+  g_return_if_fail (style != NULL);
+  g_return_if_fail (window != NULL);
 
   match_data.function = TOKEN_D_FOCUS;
   match_data.detail = (gchar *)detail;