[gtk/global-coords] testgtk: Fix a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/global-coords] testgtk: Fix a crash
- Date: Wed, 29 May 2019 15:28:39 +0000 (UTC)
commit 586b6f06db57b7d445ea43f3459cdae2a132e55c
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 203b361622..6c649d066b 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]