summaryrefslogtreecommitdiff
path: root/tests/testgmenu.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-12-09 13:14:00 +0100
committerTimm Bäder <mail@baedert.org>2017-12-09 13:14:00 +0100
commit484e4537807063e2c225f11f2f55f0d04917d356 (patch)
treee9f4d80ca6a818df10dbda30caa8c04fbd4e439c /tests/testgmenu.c
parente7ed7c1913f9eb9c9dd214f501acad54e80ea36b (diff)
downloadgtk+-484e4537807063e2c225f11f2f55f0d04917d356.tar.gz
Fix a few overlooked casts
glib warns about these now.
Diffstat (limited to 'tests/testgmenu.c')
-rw-r--r--tests/testgmenu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testgmenu.c b/tests/testgmenu.c
index e5366aa247..8940af501f 100644
--- a/tests/testgmenu.c
+++ b/tests/testgmenu.c
@@ -103,9 +103,9 @@ get_model (void)
gtk_builder_add_from_string (builder, menu_markup, -1, &error);
g_assert_no_error (error);
- menu = g_object_ref (gtk_builder_get_object (builder, "edit-menu"));
+ menu = G_MENU_MODEL (g_object_ref (gtk_builder_get_object (builder, "edit-menu")));
- section = g_object_ref (gtk_builder_get_object (builder, "size-placeholder"));
+ section = G_MENU_MODEL (g_object_ref (gtk_builder_get_object (builder, "size-placeholder")));
g_object_unref (builder);
for (i = 0.5; i <= 2.0; i += 0.5)