diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2018-02-11 16:22:49 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2018-02-11 23:32:42 +0000 |
commit | ade22d00f26ee7463a39a8631b9e1271c6b0d09f (patch) | |
tree | 80e8c9b62a9c49a5c634721ee6e4f5a209debdc7 /gtk/gtkcomboboxtext.c | |
parent | c03ce68c38363b13723b7d25a2b5b560b7e1acdd (diff) | |
download | gtk+-ade22d00f26ee7463a39a8631b9e1271c6b0d09f.tar.gz |
gtk: Cast g_object_ref() to the right type
In GLib 2.56, g_object_ref() will check that you're assigning the return
value to a variable of the same type you're passing in.
Diffstat (limited to 'gtk/gtkcomboboxtext.c')
-rw-r--r-- | gtk/gtkcomboboxtext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkcomboboxtext.c b/gtk/gtkcomboboxtext.c index 4b15c04028..e70f323ae3 100644 --- a/gtk/gtkcomboboxtext.c +++ b/gtk/gtkcomboboxtext.c @@ -292,7 +292,7 @@ gtk_combo_box_text_buildable_custom_tag_start (GtkBuildable *buildable, data = g_slice_new0 (ItemParserData); data->builder = g_object_ref (builder); - data->object = g_object_ref (buildable); + data->object = G_OBJECT (g_object_ref (buildable)); data->domain = gtk_builder_get_translation_domain (builder); data->string = g_string_new (""); |