summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2018-07-16 11:44:52 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2018-07-16 13:19:26 -0500
commitf21db3f83110e890bf7182aae5194ed2c688d9a1 (patch)
treed7e81cf9abfbc759ad82c27e925f31f1d25d6b9f
parent8cceb93659fcff75d8edb79b452ec96e9d4bd5e5 (diff)
downloadepiphany-flatpak-ci.tar.gz
Attempt to fix location entry testflatpak-ci
It's no longer a GtkEntry
-rw-r--r--tests/ephy-location-entry-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ephy-location-entry-test.c b/tests/ephy-location-entry-test.c
index bcd6bebaa..c378187a5 100644
--- a/tests/ephy-location-entry-test.c
+++ b/tests/ephy-location-entry-test.c
@@ -39,9 +39,10 @@ static void
test_entry_get_entry (void)
{
EphyLocationEntry *entry;
+
entry = EPHY_LOCATION_ENTRY (ephy_location_entry_new ());
- g_assert (GTK_IS_ENTRY (entry));
+ g_assert (GTK_IS_ENTRY (ephy_location_entry_get_entry (entry)));
}
static void
@@ -111,7 +112,7 @@ test_entry_can_undo (void)
/* Use gtk_* function or otherwise user_changed won't be correctly handled
* internally by the location entry (see editable_changed_cb and
* block_update) */
- gtk_entry_set_text (GTK_ENTRY (entry), test);
+ gtk_entry_set_text (GTK_ENTRY (ephy_location_entry_get_entry (entry)), test);
g_assert_cmpint (ephy_location_entry_get_can_undo (entry), ==, TRUE);
}