Return gboolean, not gint. (#107664, Morten Welinder)
2003-03-06 Matthias Clasen <maclas@gmx.de> * gdk/gdkrgb.c (gdk_rgb_try_colormap): Return gboolean, not gint. (#107664, Morten Welinder) * gdk/x11/gdkwindow-x11.c (gdk_window_get_deskrelative_origin): * gdk/x11/gdkfont-x11.c (gdk_font_equal): * gdk/x11/gdkdnd-x11.c (gdk_drag_get_protocol_for_display): Fix TRUE/1 and FALSE/0 confusion. (#107664, Morten Welinder) * io-gif.c (gif_read): Fix 0/FALSE confusion (#107664, Morten Welinder)
This commit is contained in:
committed by
Matthias Clasen
parent
ce58806c0d
commit
285a25da03
@ -2803,7 +2803,7 @@ gdk_drag_get_protocol_for_display (GdkDisplay *display,
|
||||
GdkDragProtocol *protocol)
|
||||
{
|
||||
guint32 retval;
|
||||
g_return_val_if_fail (GDK_IS_DISPLAY (display), TRUE);
|
||||
g_return_val_if_fail (GDK_IS_DISPLAY (display), None);
|
||||
|
||||
if ((retval = xdnd_check_dest (display, xid)))
|
||||
{
|
||||
|
||||
@ -553,7 +553,7 @@ gdk_font_equal (const GdkFont *fonta,
|
||||
}
|
||||
else
|
||||
/* fontset != font */
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -2518,8 +2518,8 @@ gdk_window_get_deskrelative_origin (GdkWindow *window,
|
||||
gulong number_return, bytes_after_return;
|
||||
guchar *data_return;
|
||||
|
||||
g_return_val_if_fail (window != NULL, 0);
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), 0);
|
||||
g_return_val_if_fail (window != NULL, FALSE);
|
||||
g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE);
|
||||
|
||||
if (!GDK_WINDOW_DESTROYED (window))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user