After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 158470 - gtkbutton.c: return-value of gtk_button_get_image is not valid.
gtkbutton.c: return-value of gtk_button_get_image is not valid.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.5.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-11-16 16:41 UTC by Kazuki Iwamoto
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2004-11-16 16:41:16 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:
Comment 1 Matthias Clasen 2004-11-17 01:23:51 UTC
Fixed