summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVictor Toso <me@victortoso.com>2019-11-06 11:24:17 +0100
committerVictor Toso <me@victortoso.com>2019-11-06 11:24:19 +0100
commit5f0624c8dc52bf46ee54d3cf1466f5eeb183f030 (patch)
tree15fc8854221c7a11252a3e433f68f1d35b1dbc45 /plugins
parent21551ac316f20a190fea475b084379ab8077c724 (diff)
downloadglade-5f0624c8dc52bf46ee54d3cf1466f5eeb183f030.tar.gz
gtk+: properly cast to avoid warnings
In order to avoid: > ../plugins/gtk+/glade-gtk-list-box.c:235:29: warning: passing > argument 2 of ‘glade_project_is_selected’ from incompatible > pointer type [-Wincompatible-pointer-types] > > 235 | (project, child) == FALSE) > | ^~~~~ > | | > | GtkWidget * {aka struct _GtkWidget *} > > ../plugins/gtk+/glade-gtk-list-box.c:236:55: warning: passing > argument 2 of ‘glade_project_selection_set’ from incompatible > pointer type [-Wincompatible-pointer-types] > > 236 | glade_project_selection_set (project, child, FALSE); > | ^~~~~ > | | > | GtkWidget * {aka struct _GtkWidget *}
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gtk+/glade-gtk-list-box.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gtk+/glade-gtk-list-box.c b/plugins/gtk+/glade-gtk-list-box.c
index b91828ad..109a80b3 100644
--- a/plugins/gtk+/glade-gtk-list-box.c
+++ b/plugins/gtk+/glade-gtk-list-box.c
@@ -232,8 +232,8 @@ glade_gtk_listbox_set_property (GladeWidgetAdaptor *adaptor,
GladeProject *project = glade_widget_get_project (glade_widget_get_from_gobject (object));
/* Assign selection first */
if (glade_project_is_selected
- (project, child) == FALSE)
- glade_project_selection_set (project, child, FALSE);
+ (project, G_OBJECT (child)) == FALSE)
+ glade_project_selection_set (project, G_OBJECT (child), FALSE);
glade_project_command_delete (project);
glade_project_selection_set (project, object, TRUE);