[dia] [warningectomy] incompatible pointer types passing 'GObject *' ...
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [warningectomy] incompatible pointer types passing 'GObject *' ...
- Date: Sat, 4 Oct 2014 11:06:47 +0000 (UTC)
commit ca8d88c8edaff6c0ae51f79e12d6468ce00924b3
Author: Hans Breuer <hans breuer org>
Date: Fri Oct 3 22:21:56 2014 +0200
[warningectomy] incompatible pointer types passing 'GObject *' ...
sheets_dialog.c:254:24: warning: incompatible pointer types passing 'GObject *' (aka 'struct _GObject *')
to parameter of type 'GtkObject *' (aka 'struct _GtkObject *') [-Wincompatible-pointer-types]
gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "sheets_shapeselection_dialog",
sheets_shapeselection_dialog);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:51:37: note: expanded from macro 'G_OBJECT'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkobject.h:181:49: note: passing argument to parameter 'object' here
void gtk_object_set_data (GtkObject *object,
^
sheets_dialog.c:258:24: warning: incompatible pointer types passing 'GObject *' (aka 'struct _GObject *')
to parameter of type 'GtkObject *' (aka 'struct _GtkObject *') [-Wincompatible-pointer-types]
gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "ok_button", ok_button);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:51:37: note: expanded from macro 'G_OBJECT'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkobject.h:181:49: note: passing argument to parameter 'object' here
void gtk_object_set_data (GtkObject *object,
^
sheets_dialog.c:267:24: warning: incompatible pointer types passing 'GObject *' (aka 'struct _GObject *')
to parameter of type 'GtkObject *' (aka 'struct _GtkObject *') [-Wincompatible-pointer-types]
gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "cancel_button1", cancel_button1);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/gobject.h:51:37: note: expanded from macro 'G_OBJECT'
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/gtk-2.0/gtk/gtkobject.h:181:49: note: passing argument to parameter 'object' here
void gtk_object_set_data (GtkObject *object,
^
app/sheets_dialog.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/sheets_dialog.c b/app/sheets_dialog.c
index 18c3634..ce5358f 100644
--- a/app/sheets_dialog.c
+++ b/app/sheets_dialog.c
@@ -251,11 +251,11 @@ create_sheets_shapeselection_dialog (void)
GtkWidget *cancel_button1;
sheets_shapeselection_dialog = gtk_file_selection_new (_("Select SVG Shape File"));
- gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "sheets_shapeselection_dialog",
sheets_shapeselection_dialog);
+ gtk_object_set_data (GTK_OBJECT (sheets_shapeselection_dialog), "sheets_shapeselection_dialog",
sheets_shapeselection_dialog);
gtk_container_set_border_width (GTK_CONTAINER (sheets_shapeselection_dialog), 10);
ok_button = GTK_FILE_SELECTION (sheets_shapeselection_dialog)->ok_button;
- gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "ok_button", ok_button);
+ gtk_object_set_data (GTK_OBJECT (sheets_shapeselection_dialog), "ok_button", ok_button);
gtk_widget_show (ok_button);
#if GTK_CHECK_VERSION(2,18,0)
gtk_widget_set_can_default (GTK_WIDGET (ok_button), TRUE);
@@ -264,7 +264,7 @@ create_sheets_shapeselection_dialog (void)
#endif
cancel_button1 = GTK_FILE_SELECTION (sheets_shapeselection_dialog)->cancel_button;
- gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "cancel_button1", cancel_button1);
+ gtk_object_set_data (GTK_OBJECT (sheets_shapeselection_dialog), "cancel_button1", cancel_button1);
gtk_widget_show (cancel_button1);
#if GTK_CHECK_VERSION(2,18,0)
gtk_widget_set_can_default (GTK_WIDGET (cancel_button1), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]