[gtk] testgtk: Fix a crash



commit 5675d585f40adc407f7f0f56289654dc785b4610
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed May 29 15:05:06 2019 +0000

    testgtk: Fix a crash
    
    Somebody forgot to update the signal handler
    here when changing the size-allocate signal.

 tests/testgtk.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/tests/testgtk.c b/tests/testgtk.c
index 7f0e6a0e8d..20b3ba3d24 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -5219,15 +5219,16 @@ create_surface_states (GtkWidget *widget)
  */
 
 static void
-size_allocate_callback (GtkWidget     *widget,
-                       GtkAllocation *allocation,
-                       int            baseline,
-                       gpointer       data)
+size_allocate_callback (GtkWidget *widget,
+                       int        width,
+                        int        height,
+                       int        baseline,
+                       gpointer   data)
 {
   GtkWidget *label = data;
   gchar *msg;
 
-  msg = g_strdup_printf ("size: %d x %d\n", allocation->width, allocation->height);
+  msg = g_strdup_printf ("size: %d x %d\n", width, height);
 
   gtk_label_set_text (GTK_LABEL (label), msg);
 


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