Compare commits

...

5 Commits

Author SHA1 Message Date
Matthias Clasen
2c8b5c42af wip: Fix inspector inspect button 2020-03-19 15:37:35 -04:00
Matthias Clasen
3ac4c76b18 Merge branch 'disable-window-test' into 'master'
Disable window test

See merge request GNOME/gtk!1540
2020-03-19 19:35:42 +00:00
Matthias Clasen
89b537bd8a Fix the action test
We have a test that enumerates the GtkText actions,
so when a new open appears, the test needs to be updated.
2020-03-19 14:29:37 -04:00
Matthias Clasen
7d5cfcf61d Fix a compiler warning 2020-03-19 14:13:26 -04:00
Matthias Clasen
2e70b4c323 temporarily disable window test
This test was broken by the GdkToplevel refactoring,
and needs a big gtkwindow.c configure request cleanup
before it will work again.
2020-03-19 11:25:38 -04:00
4 changed files with 12 additions and 14 deletions

View File

@@ -199,7 +199,7 @@ popup_edit (GtkWidget *widget,
GtkWidget *focus;
gint position;
gint s, e;
char *param;
const char *param;
param = g_variant_get_string (parameters, NULL);

View File

@@ -99,9 +99,7 @@ on_inspect_widget (GtkInspectorWindow *iw,
{
GtkWidget *widget;
#if 0
gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (iw)));
#endif
gtk_window_present (GTK_WINDOW (iw));
clear_flash (iw);
@@ -124,10 +122,8 @@ reemphasize_window (GtkWidget *window)
gtk_widget_set_opacity (window, 1.0);
gtk_window_set_extra_input_region (GTK_WINDOW (iw), NULL);
}
#if 0
else
gdk_surface_raise (gtk_native_get_surface (GTK_NATIVE (window)));
#endif
gtk_window_present (GTK_WINDOW (window));
}
static gboolean handle_event (GtkInspectorWindow *iw, GdkEvent *event);
@@ -210,10 +206,8 @@ gtk_inspector_on_inspect (GtkWidget *button,
gtk_window_set_extra_input_region (GTK_WINDOW (iw), region);
cairo_region_destroy (region);
}
#if 0
else
gdk_surface_lower (gtk_native_get_surface (GTK_NATIVE (iw)));
#endif
gdk_toplevel_lower (GDK_TOPLEVEL (gtk_native_get_surface (GTK_NATIVE (iw))));
g_signal_connect (iw, "event", G_CALLBACK (handle_event), NULL);
}

View File

@@ -360,6 +360,7 @@ test_introspection (void)
} expected[] = {
{ GTK_TYPE_TEXT, "text.undo", NULL, NULL },
{ GTK_TYPE_TEXT, "text.redo", NULL, NULL },
{ GTK_TYPE_TEXT, "menu.popup", NULL, NULL },
{ GTK_TYPE_TEXT, "clipboard.cut", NULL, NULL },
{ GTK_TYPE_TEXT, "clipboard.copy", NULL, NULL },
{ GTK_TYPE_TEXT, "clipboard.paste", NULL, NULL },
@@ -378,9 +379,9 @@ test_introspection (void)
&property))
{
g_assert (expected[i].owner == owner);
g_assert (strcmp (expected[i].name, name) == 0);
g_assert (g_strcmp0 (expected[i].params, params ? g_variant_type_peek_string (params) : NULL) == 0);
g_assert (g_strcmp0 (expected[i].property, property) == 0);
g_assert_cmpstr (expected[i].name, ==, name);
g_assert_cmpstr (expected[i].params, ==, params ? g_variant_type_peek_string (params) : NULL);
g_assert_cmpstr (expected[i].property, ==, property);
i++;
}
g_assert (i == G_N_ELEMENTS (expected));

View File

@@ -65,7 +65,6 @@ tests = [
['treepath'],
['treeview'],
['typename'],
['window'],
['displayclose'],
['revealer-size'],
['widgetorder'],
@@ -73,6 +72,10 @@ tests = [
# Tests that are expected to fail
xfail = [
# one of the window resizing tests fails after
# the GdkToplevel refactoring, and needs a big
# gtkwindow.c configure request cleanup
'window',
]
is_debug = get_option('buildtype').startswith('debug')