[gtk/wip/iainl/pointer-type-casts-3-24] Fix a few overlooked casts
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/iainl/pointer-type-casts-3-24] Fix a few overlooked casts
- Date: Wed, 23 Jan 2019 12:04:26 +0000 (UTC)
commit 2326d949e4fb5f1062f0d3de0bb2c940354b47af
Author: Timm Bäder <mail baedert org>
Date: Sat Dec 9 13:14:00 2017 +0100
Fix a few overlooked casts
glib warns about these now.
(cherry picked from commit 484e4537807063e2c225f11f2f55f0d04917d356)
tests/testgmenu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/testgmenu.c b/tests/testgmenu.c
index c92b1439bc..246a4ed33d 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]