[libdazzle] build: be explicit about casts via g_object_ref()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] build: be explicit about casts via g_object_ref()
- Date: Wed, 22 Nov 2017 08:53:54 +0000 (UTC)
commit b52e00558c356d905e10ed49d4e64ea5d5605e48
Author: Christian Hergert <chergert redhat com>
Date: Wed Nov 22 00:52:59 2017 -0800
build: be explicit about casts via g_object_ref()
If pending patches for GObject, these will become a warning.
src/statemachine/dzl-state-machine-buildable.c | 2 +-
src/widgets/dzl-list-box.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/statemachine/dzl-state-machine-buildable.c b/src/statemachine/dzl-state-machine-buildable.c
index 5510be4..8df9280 100644
--- a/src/statemachine/dzl-state-machine-buildable.c
+++ b/src/statemachine/dzl-state-machine-buildable.c
@@ -634,7 +634,7 @@ dzl_state_machine_buildable_custom_tag_start (GtkBuildable *buildable,
StatesParserData *parser_data;
parser_data = g_slice_new0 (StatesParserData);
- parser_data->self = g_object_ref (buildable);
+ parser_data->self = g_object_ref (DZL_STATE_MACHINE (buildable));
parser_data->builder = g_object_ref (builder);
parser_data->stack = g_queue_new ();
diff --git a/src/widgets/dzl-list-box.c b/src/widgets/dzl-list-box.c
index 8f20633..425a284 100644
--- a/src/widgets/dzl-list-box.c
+++ b/src/widgets/dzl-list-box.c
@@ -77,7 +77,7 @@ _dzl_list_box_cache (DzlListBox *self,
if (priv->trashed_rows.length < priv->recycle_max)
{
- g_autoptr(GtkWidget) held = g_object_ref (row);
+ g_autoptr(GtkWidget) held = g_object_ref (GTK_WIDGET (row));
gtk_list_box_unselect_row (GTK_LIST_BOX (self), GTK_LIST_BOX_ROW (row));
gtk_container_remove (GTK_CONTAINER (self), GTK_WIDGET (row));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]