[gnome-builder] tree: reduce function calls in visibility check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tree: reduce function calls in visibility check
- Date: Sat, 20 Jun 2015 09:43:32 +0000 (UTC)
commit 294004d36098ab947f80c2773612c649f4ba06ab
Author: Christian Hergert <christian hergert me>
Date: Sun Jun 14 11:31:56 2015 -0700
tree: reduce function calls in visibility check
src/tree/gb-tree.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index 5d4dfa2..b04f409 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -240,8 +240,8 @@ check_visible_foreach (GtkWidget *widget,
{
gboolean *at_least_one_visible = user_data;
- if (gtk_widget_get_visible (widget))
- *at_least_one_visible = TRUE;
+ if (*at_least_one_visible == FALSE)
+ *at_least_one_visible = gtk_widget_get_visible (widget);
}
static GMenu *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]