[dia] [warningectomy] expected 'struct GtkWidget *' but argument ...
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] expected 'struct GtkWidget *' but argument ...
- Date: Sat, 31 Jul 2010 18:08:58 +0000 (UTC)
commit 380a5fd146c027883d1b9d35418c5c96c18e50dd
Author: Hans Breuer <hans breuer org>
Date: Sat Jul 31 14:22:38 2010 +0200
[warningectomy] expected 'struct GtkWidget *' but argument ...
Add missing GTK_WIDGET casts.
app/diacanvas.c | 2 +-
app/diagram_tree.c | 2 +-
app/gtkwrapbox.c | 10 +++++-----
app/interface.c | 6 +++---
4 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/app/diacanvas.c b/app/diacanvas.c
index 0c0cb67..e6c8f34 100644
--- a/app/diacanvas.c
+++ b/app/diacanvas.c
@@ -505,7 +505,7 @@ dia_canvas_remove (GtkContainer *container,
g_free (child);
#if GTK_CHECK_VERSION(2,20,0)
- if (was_visible && gtk_widget_get_visible (container))
+ if (was_visible && gtk_widget_get_visible (GTK_WIDGET (container)))
#else
if (was_visible && GTK_WIDGET_VISIBLE (container))
#endif
diff --git a/app/diagram_tree.c b/app/diagram_tree.c
index 512ba47..9967b6d 100644
--- a/app/diagram_tree.c
+++ b/app/diagram_tree.c
@@ -421,7 +421,7 @@ diagram_tree_delete(GtkCTree *ctree, DiagramTree *tree)
g_signal_handlers_disconnect_by_func (G_OBJECT (dia_application_get ()), _diagram_change, tree);
g_signal_handlers_disconnect_by_func (G_OBJECT (dia_application_get ()), _diagram_remove, tree);
- gtk_widget_destroy (ctree);
+ gtk_widget_destroy (GTK_WIDGET (ctree));
}
static void
diff --git a/app/gtkwrapbox.c b/app/gtkwrapbox.c
index a53f0a9..05152d7 100644
--- a/app/gtkwrapbox.c
+++ b/app/gtkwrapbox.c
@@ -620,20 +620,20 @@ gtk_wrap_box_pack_wrapped (GtkWrapBox *wbox,
gtk_widget_set_parent (child, GTK_WIDGET (wbox));
#if GTK_CHECK_VERSION(2,20,0)
- if (gtk_widget_get_realized (wbox))
+ if (gtk_widget_get_realized (GTK_WIDGET (wbox)))
#else
if (GTK_WIDGET_REALIZED (wbox))
#endif
gtk_widget_realize (child);
#if GTK_CHECK_VERSION(2,20,0)
- if (gtk_widget_get_visible (wbox) && gtk_widget_get_visible (child))
+ if (gtk_widget_get_visible (GTK_WIDGET (wbox)) && gtk_widget_get_visible (child))
#else
if (GTK_WIDGET_VISIBLE (wbox) && GTK_WIDGET_VISIBLE (child))
#endif
{
#if GTK_CHECK_VERSION(2,20,0)
- if (gtk_widget_get_mapped (wbox))
+ if (gtk_widget_get_mapped (GTK_WIDGET (wbox)))
#else
if (GTK_WIDGET_MAPPED (wbox))
#endif
@@ -690,7 +690,7 @@ gtk_wrap_box_reorder_child (GtkWrapBox *wbox,
}
#if GTK_CHECK_VERSION(2,20,0)
- if (gtk_widget_get_visible (child) && gtk_widget_get_visible (wbox))
+ if (gtk_widget_get_visible (child) && gtk_widget_get_visible (GTK_WIDGET (wbox)))
#else
if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_VISIBLE (wbox))
#endif
@@ -767,7 +767,7 @@ gtk_wrap_box_set_child_packing (GtkWrapBox *wbox,
child_info->wrapped = wrapped;
#if GTK_CHECK_VERSION(2,20,0)
- if (gtk_widget_get_visible (child) && gtk_widget_get_visible (wbox))
+ if (gtk_widget_get_visible (child) && gtk_widget_get_visible (GTK_WIDGET (wbox)))
#else
if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_VISIBLE (wbox))
#endif
diff --git a/app/interface.c b/app/interface.c
index 68651e6..68c9a61 100644
--- a/app/interface.c
+++ b/app/interface.c
@@ -1864,7 +1864,7 @@ gboolean integrated_ui_main_toolbar_is_showing (void)
if (ui.toolbar)
{
#if GTK_CHECK_VERSION(2,20,0)
- return gtk_widget_get_visible (ui.toolbar)? TRUE : FALSE;
+ return gtk_widget_get_visible (GTK_WIDGET (ui.toolbar))? TRUE : FALSE;
#else
return GTK_WIDGET_VISIBLE (ui.toolbar)? TRUE : FALSE;
#endif
@@ -1906,7 +1906,7 @@ gboolean integrated_ui_layer_view_is_showing (void)
if (ui.layer_view)
{
#if GTK_CHECK_VERSION(2,20,0)
- return gtk_widget_get_visible (ui.layer_view)? TRUE : FALSE;
+ return gtk_widget_get_visible (GTK_WIDGET (ui.layer_view))? TRUE : FALSE;
#else
return GTK_WIDGET_VISIBLE (ui.layer_view)? TRUE : FALSE;
#endif
@@ -1950,7 +1950,7 @@ gboolean integrated_ui_main_statusbar_is_showing (void)
if (ui.statusbar)
{
#if GTK_CHECK_VERSION(2,20,0)
- return gtk_widget_get_visible (ui.statusbar)? TRUE : FALSE;
+ return gtk_widget_get_visible (GTK_WIDGET (ui.statusbar))? TRUE : FALSE;
#else
return GTK_WIDGET_VISIBLE (ui.statusbar)? TRUE : FALSE;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]