[gnome-shell/wip/clutter-deprecation-fixes: 2/22] st-scroll-view: Remove unnecessary VISIBLE checks
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/clutter-deprecation-fixes: 2/22] st-scroll-view: Remove unnecessary VISIBLE checks
- Date: Wed, 15 Feb 2012 12:28:02 +0000 (UTC)
commit 40fbc3161628b59905258bfdb3076b5cdbf92ebf
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 14 14:22:50 2012 -0500
st-scroll-view: Remove unnecessary VISIBLE checks
clutter_actor_paint already checks for VISIBLE before painting
https://bugzilla.gnome.org/show_bug.cgi?id=670034
src/st/st-scroll-view.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index e5de8c8..0b304a0 100644
--- a/src/st/st-scroll-view.c
+++ b/src/st/st-scroll-view.c
@@ -270,9 +270,9 @@ st_scroll_view_paint (ClutterActor *actor)
CLUTTER_ACTOR_CLASS (st_scroll_view_parent_class)->paint (actor);
/* paint our custom children */
- if (priv->hscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll))
+ if (priv->hscrollbar_visible)
clutter_actor_paint (priv->hscroll);
- if (priv->vscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll))
+ if (priv->vscrollbar_visible)
clutter_actor_paint (priv->vscroll);
}
@@ -286,9 +286,9 @@ st_scroll_view_pick (ClutterActor *actor,
CLUTTER_ACTOR_CLASS (st_scroll_view_parent_class)->pick (actor, color);
/* paint our custom children */
- if (priv->hscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll))
+ if (priv->hscrollbar_visible)
clutter_actor_paint (priv->hscroll);
- if (priv->vscrollbar_visible && CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll))
+ if (priv->vscrollbar_visible)
clutter_actor_paint (priv->vscroll);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]