[gtk-quartz-engine] Remove excess elses in draw_flat_box()
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-quartz-engine] Remove excess elses in draw_flat_box()
- Date: Sat, 9 Oct 2010 18:08:04 +0000 (UTC)
commit cb0f6b57bdef867ef712aed178855307245d283c
Author: John Ralls <jralls ceridwen us>
Date: Tue Jan 5 15:20:01 2010 -0800
Remove excess elses in draw_flat_box()
Since every clause returned at the end, the elses weren't needed.
src/quartz-style.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/quartz-style.c b/src/quartz-style.c
index 978c5a2..a49e592 100644
--- a/src/quartz-style.c
+++ b/src/quartz-style.c
@@ -1369,7 +1369,7 @@ draw_flat_box (GtkStyle *style,
return;
}
- else if (GTK_IS_PROGRESS_BAR (widget) && IS_DETAIL (detail, "trough"))
+ if (GTK_IS_PROGRESS_BAR (widget) && IS_DETAIL (detail, "trough"))
{
CGContextRef context;
HIRect rect;
@@ -1395,13 +1395,13 @@ draw_flat_box (GtkStyle *style,
return;
}
- else if (IS_DETAIL (detail, "checkbutton"))
+ if (IS_DETAIL (detail, "checkbutton"))
{
/* We don't want any background, no prelight etc. */
return;
}
- else if (IS_DETAIL (detail, "cell_even") || IS_DETAIL (detail, "cell_odd") ||
- IS_DETAIL (detail, "cell_even_ruled") || IS_DETAIL (detail, "cell_odd_ruled"))
+ if (IS_DETAIL (detail, "cell_even") || IS_DETAIL (detail, "cell_odd") ||
+ IS_DETAIL (detail, "cell_even_ruled") || IS_DETAIL (detail, "cell_odd_ruled"))
{
/* FIXME: Should draw using HITheme, or get the right selection
* color.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]