diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-05 12:15:36 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-06 14:27:45 -0400 |
commit | 82e92582bd1d852f6e9762609a3ee5a53f4a65d0 (patch) | |
tree | 645331928383eaeb7b503f4d3bf5367691f832eb /tests/testgtk.c | |
parent | 92bcf4c7a7c783b4cc01c8371e340efbea1b2e9e (diff) | |
download | gtk+-82e92582bd1d852f6e9762609a3ee5a53f4a65d0.tar.gz |
tests: Stop using ::size-allocate
Diffstat (limited to 'tests/testgtk.c')
-rw-r--r-- | tests/testgtk.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c index 56f5de45d4..8f0cfe22ec 100644 --- a/tests/testgtk.c +++ b/tests/testgtk.c @@ -4956,23 +4956,6 @@ create_surface_states (GtkWidget *widget) */ static void -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", width, height); - - gtk_label_set_text (GTK_LABEL (label), msg); - - g_free (msg); -} - -static void get_ints (GtkWidget *window, gint *a, gint *b) @@ -5081,8 +5064,6 @@ window_controls (GtkWidget *window) label = gtk_label_new ("<no size>"); gtk_container_add (GTK_CONTAINER (vbox), label); - g_signal_connect_after (window, "size-allocate", G_CALLBACK (size_allocate_callback), label); - adjustment = gtk_adjustment_new (10.0, -2000.0, 2000.0, 1.0, 5.0, 0.0); spin = gtk_spin_button_new (adjustment, 0, 0); |