From 93bb3f7144fccfebfa1683557b20423a5eb25c65 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 24 Aug 2018 07:40:49 +0200 Subject: [PATCH] testsuite: Remove GtkAccelGroup usage --- testsuite/gtk/builder.c | 53 ----------------------------------------- 1 file changed, 53 deletions(-) diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c index 15afb24c4d..c7178d476d 100644 --- a/testsuite/gtk/builder.c +++ b/testsuite/gtk/builder.c @@ -1389,58 +1389,6 @@ test_message_dialog (void) g_object_unref (builder); } -static void -test_accelerators (void) -{ - GtkBuilder *builder; - const gchar *buffer = - "" - " " - " " - " " - " " - " " - " " - " " - ""; - const gchar *buffer2 = - "" - " " - " " - " " - " " - " " - " " - ""; - GObject *window1; - GSList *accel_groups; - GObject *accel_group; - - builder = builder_new_from_string (buffer, -1, NULL); - window1 = gtk_builder_get_object (builder, "window1"); - g_assert (window1); - g_assert (GTK_IS_WINDOW (window1)); - - accel_groups = gtk_accel_groups_from_object (window1); - g_assert (g_slist_length (accel_groups) == 1); - accel_group = g_slist_nth_data (accel_groups, 0); - g_assert (accel_group); - - gtk_widget_destroy (GTK_WIDGET (window1)); - g_object_unref (builder); - - builder = builder_new_from_string (buffer2, -1, NULL); - window1 = gtk_builder_get_object (builder, "window1"); - g_assert (window1); - g_assert (GTK_IS_WINDOW (window1)); - - accel_groups = gtk_accel_groups_from_object (window1); - g_assert_cmpint (g_slist_length (accel_groups), ==, 0); - - gtk_widget_destroy (GTK_WIDGET (window1)); - g_object_unref (builder); -} - static void test_widget (void) { @@ -2497,7 +2445,6 @@ main (int argc, char **argv) #endif g_test_add_func ("/Builder/CellView", test_cell_view); g_test_add_func ("/Builder/Dialog", test_dialog); - g_test_add_func ("/Builder/Accelerators", test_accelerators); g_test_add_func ("/Builder/Widget", test_widget); g_test_add_func ("/Builder/Value From String", test_value_from_string); g_test_add_func ("/Builder/Reference Counting", test_reference_counting);