GNOME Bugzilla – Bug 158470
gtkbutton.c: return-value of gtk_button_get_image is not valid.
Last modified: 2004-12-22 21:47:04 UTC
Please describe the problem: gtk_button_get_image will return "GtkWidget *", but GTK_RELIEF_NORMAL is not pointer. Steps to reproduce: 1. compile by Visual C++ 6.0 Actual results: The following message is displayed. gtkbutton.c(1782) : error C4047: 'return' : 'GtkWidget *' differs in levels of indirection from 'int' Expected results: GTK_RELIEF_NORMAL should be casted. For example... g_return_val_if_fail (GTK_IS_BUTTON (button), (GtkWidget *)GTK_RELIEF_NORMAL); Does this happen every time? every time Other information:
Fixed