summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2006-03-10 19:15:40 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-03-10 19:15:40 +0000
commit26a1ba116e0d1b819c95f3f1c91f0033ca1c042c (patch)
treea57e0c98dacedb5acd4ae265ea374e332a00db5d /modules
parent1f9bbaf3daf3b4f8c6c227dfba47c749b38fc6ae (diff)
downloadgtk+-26a1ba116e0d1b819c95f3f1c91f0033ca1c042c.tar.gz
Remove suspicious code. (#325295, Alexander Nedotsukov)
2006-03-10 Matthias Clasen <mclasen@redhat.com> * pixbuf-draw.c (draw_extension): Remove suspicious code. (#325295, Alexander Nedotsukov)
Diffstat (limited to 'modules')
-rw-r--r--modules/engines/pixbuf/ChangeLog5
-rw-r--r--modules/engines/pixbuf/pixbuf-draw.c14
2 files changed, 9 insertions, 10 deletions
diff --git a/modules/engines/pixbuf/ChangeLog b/modules/engines/pixbuf/ChangeLog
index 68f29c810e..3f524b335e 100644
--- a/modules/engines/pixbuf/ChangeLog
+++ b/modules/engines/pixbuf/ChangeLog
@@ -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
diff --git a/modules/engines/pixbuf/pixbuf-draw.c b/modules/engines/pixbuf/pixbuf-draw.c
index 60cbefc905..fcaae96789 100644
--- a/modules/engines/pixbuf/pixbuf-draw.c
+++ b/modules/engines/pixbuf/pixbuf-draw.c
@@ -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;