[glade] gtk+: properly cast to avoid warnings
- From: Alberto Fanjul <albfan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] gtk+: properly cast to avoid warnings
- Date: Wed, 6 Nov 2019 12:36:48 +0000 (UTC)
commit 5f0624c8dc52bf46ee54d3cf1466f5eeb183f030
Author: Victor Toso <me victortoso com>
Date: Wed Nov 6 11:24:17 2019 +0100
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 *}
plugins/gtk+/glade-gtk-list-box.c | 4 ++--
1 file 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]