[gnome-shell] st-scroll-view: properly check if the scrollbars are visible
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-scroll-view: properly check if the scrollbars are visible
- Date: Wed, 17 Jul 2013 15:33:39 +0000 (UTC)
commit cfecd063c9ca3d18cdee0e57102bb644863484cf
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Mon Jul 15 17:42:43 2013 +0200
st-scroll-view: properly check if the scrollbars are visible
We don't set :visible on the scrollbars, but use booleans to track
if they are visible. Thus check the booleans instead of the actor's
properties when allocating the scrollbars.
https://bugzilla.gnome.org/show_bug.cgi?id=704265
src/st/st-scroll-view.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c
index 9ea394b..04e263f 100644
--- a/src/st/st-scroll-view.c
+++ b/src/st/st-scroll-view.c
@@ -598,7 +598,7 @@ st_scroll_view_allocate (ClutterActor *actor,
*/
/* Vertical scrollbar */
- if (CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll))
+ if (vscrollbar_visible)
{
if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
{
@@ -617,7 +617,7 @@ st_scroll_view_allocate (ClutterActor *actor,
}
/* Horizontal scrollbar */
- if (CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll))
+ if (hscrollbar_visible)
{
if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]