• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

作図ソフト dia の改良版


Commit MetaInfo

Révisionca8d88c8edaff6c0ae51f79e12d6468ce00924b3 (tree)
l'heure2014-10-04 18:43:26
AuteurHans Breuer <hans@breu...>
CommiterHans Breuer

Message de Log

[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,


Change Summary

Modification

--- a/app/sheets_dialog.c
+++ b/app/sheets_dialog.c
@@ -251,11 +251,11 @@ create_sheets_shapeselection_dialog (void)
251251 GtkWidget *cancel_button1;
252252
253253 sheets_shapeselection_dialog = gtk_file_selection_new (_("Select SVG Shape File"));
254- gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "sheets_shapeselection_dialog", sheets_shapeselection_dialog);
254+ gtk_object_set_data (GTK_OBJECT (sheets_shapeselection_dialog), "sheets_shapeselection_dialog", sheets_shapeselection_dialog);
255255 gtk_container_set_border_width (GTK_CONTAINER (sheets_shapeselection_dialog), 10);
256256
257257 ok_button = GTK_FILE_SELECTION (sheets_shapeselection_dialog)->ok_button;
258- gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "ok_button", ok_button);
258+ gtk_object_set_data (GTK_OBJECT (sheets_shapeselection_dialog), "ok_button", ok_button);
259259 gtk_widget_show (ok_button);
260260 #if GTK_CHECK_VERSION(2,18,0)
261261 gtk_widget_set_can_default (GTK_WIDGET (ok_button), TRUE);
@@ -264,7 +264,7 @@ create_sheets_shapeselection_dialog (void)
264264 #endif
265265
266266 cancel_button1 = GTK_FILE_SELECTION (sheets_shapeselection_dialog)->cancel_button;
267- gtk_object_set_data (G_OBJECT (sheets_shapeselection_dialog), "cancel_button1", cancel_button1);
267+ gtk_object_set_data (GTK_OBJECT (sheets_shapeselection_dialog), "cancel_button1", cancel_button1);
268268 gtk_widget_show (cancel_button1);
269269 #if GTK_CHECK_VERSION(2,18,0)
270270 gtk_widget_set_can_default (GTK_WIDGET (cancel_button1), TRUE);