diff options
author | Timm Bäder <mail@baedert.org> | 2017-12-09 13:14:00 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-12-09 13:14:00 +0100 |
commit | 484e4537807063e2c225f11f2f55f0d04917d356 (patch) | |
tree | e9f4d80ca6a818df10dbda30caa8c04fbd4e439c /tests/testgmenu.c | |
parent | e7ed7c1913f9eb9c9dd214f501acad54e80ea36b (diff) | |
download | gtk+-484e4537807063e2c225f11f2f55f0d04917d356.tar.gz |
Fix a few overlooked casts
glib warns about these now.
Diffstat (limited to 'tests/testgmenu.c')
-rw-r--r-- | tests/testgmenu.c | 4 |
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) |