[gtk] testsuite: Stop using grab-focus as a keybinding signal



commit 1469d01e2e688bab6fec1ee75bf760ea102a2ad6
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 26 08:16:48 2019 -0500

    testsuite: Stop using grab-focus as a keybinding signal
    
    We don't have that signal anymore.

 testsuite/gtk/builder.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c
index 3960b7906d..2fd5eae194 100644
--- a/testsuite/gtk/builder.c
+++ b/testsuite/gtk/builder.c
@@ -1282,7 +1282,6 @@ test_cell_view (void)
     "      <object class=\"GtkCellView\" id=\"cellview1\">"
     "        <property name=\"visible\">True</property>"
     "        <property name=\"model\">liststore1</property>"
-    "        <accelerator key=\"f\" modifiers=\"GDK_CONTROL_MASK\" signal=\"grab_focus\"/>"
     "        <child>"
     "          <object class=\"GtkCellRendererText\" id=\"renderer1\"/>"
     "          <attributes>"
@@ -1417,7 +1416,6 @@ test_accelerators (void)
     "    <child>"
     "      <object class=\"GtkTreeView\" id=\"treeview1\">"
     "        <signal name=\"cursor-changed\" handler=\"gtk_main_quit\"/>"
-    "        <accelerator key=\"f\" modifiers=\"GDK_CONTROL_MASK\" signal=\"grab_focus\"/>"
     "      </object>"
     "    </child>"
     "  </object>"
@@ -1445,9 +1443,7 @@ test_accelerators (void)
   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);
+  g_assert_cmpint (g_slist_length (accel_groups), ==, 0);
 
   gtk_widget_destroy (GTK_WIDGET (window1));
   g_object_unref (builder);


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