[gnome-builder/wip/chergert/perspective] rg-graph: use queue_allocate() instead of queue_resize()



commit f738858a4070a2f95941c59f3f20ab95a2af7e6c
Author: Christian Hergert <chergert redhat com>
Date:   Sat Dec 5 12:19:04 2015 -0800

    rg-graph: use queue_allocate() instead of queue_resize()
    
    All our work is done in size_allocate() anyway.

 contrib/rg/rg-graph.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/contrib/rg/rg-graph.c b/contrib/rg/rg-graph.c
index d7a1aaf..efd097f 100644
--- a/contrib/rg/rg-graph.c
+++ b/contrib/rg/rg-graph.c
@@ -88,7 +88,7 @@ rg_graph_set_table (RgGraph *self,
   if (g_set_object (&priv->table, table))
     {
       egg_signal_group_set_target (priv->table_signals, table);
-      gtk_widget_queue_resize (GTK_WIDGET (self));
+      gtk_widget_queue_allocate (GTK_WIDGET (self));
       g_object_notify_by_pspec (G_OBJECT (self), properties [PROP_TABLE]);
     }
 }
@@ -388,19 +388,19 @@ rg_graph_init (RgGraph *self)
 
   egg_signal_group_connect_object (priv->table_signals,
                                    "notify::value-max",
-                                   G_CALLBACK (gtk_widget_queue_resize),
+                                   G_CALLBACK (gtk_widget_queue_allocate),
                                    self,
                                    G_CONNECT_SWAPPED);
 
   egg_signal_group_connect_object (priv->table_signals,
                                    "notify::value-min",
-                                   G_CALLBACK (gtk_widget_queue_resize),
+                                   G_CALLBACK (gtk_widget_queue_allocate),
                                    self,
                                    G_CONNECT_SWAPPED);
 
   egg_signal_group_connect_object (priv->table_signals,
                                    "notify::timespan",
-                                   G_CALLBACK (gtk_widget_queue_resize),
+                                   G_CALLBACK (gtk_widget_queue_allocate),
                                    self,
                                    G_CONNECT_SWAPPED);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]