[gnome-builder] rg: avoid renders when widget is hidden
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] rg: avoid renders when widget is hidden
- Date: Tue, 2 Jun 2015 08:34:12 +0000 (UTC)
commit f88b44ea630a9e884eae5946004dc25b33504407
Author: Christian Hergert <christian hergert me>
Date: Tue Jun 2 01:33:53 2015 -0700
rg: avoid renders when widget is hidden
This makes us a bit more aggressive about avoiding rendering work when
the widget is hidden. We will pick up were we left off after the next
show/size-request/draw.
contrib/rg/rg-graph.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/rg/rg-graph.c b/contrib/rg/rg-graph.c
index 1c4d9db..3d0f56d 100644
--- a/contrib/rg/rg-graph.c
+++ b/contrib/rg/rg-graph.c
@@ -120,7 +120,7 @@ rg_graph_tick_cb (GtkWidget *widget,
g_assert (RG_IS_GRAPH (self));
- if ((priv->surface == NULL) || (priv->table == NULL))
+ if ((priv->surface == NULL) || (priv->table == NULL) || !gtk_widget_get_visible (widget))
{
if (priv->tick_handler != 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]