2004-01-30  Federico Mena Quintero  <federico@ximian.com>

	Fixes #132975.

	* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
	not FALSE.
	(gtk_file_system_volume_render_icon): Likewise.

	* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
	Likewise.

	* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
	not FALSE.

	* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
	FALSE.

	* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
	not FALSE.
	(gtk_text_iter_get_bytes_in_line): Likewise.

	* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
	Likewise.

	* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
	0.
This commit is contained in:
Federico Mena Quintero 2004-01-30 19:49:40 +00:00 committed by Federico Mena Quintero
parent ca644c4107
commit a9fbfc99f5
12 changed files with 144 additions and 9 deletions

View File

@ -1,3 +1,30 @@
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.
* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
not FALSE.
(gtk_file_system_volume_render_icon): Likewise.
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
Likewise.
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
not FALSE.
* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
FALSE.
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
not FALSE.
(gtk_text_iter_get_bytes_in_line): Likewise.
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
Likewise.
* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
0.
2004-01-30 Not Zed <NotZed@Ximian.com>
Fixes #132929.

View File

@ -1,3 +1,30 @@
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.
* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
not FALSE.
(gtk_file_system_volume_render_icon): Likewise.
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
Likewise.
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
not FALSE.
* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
FALSE.
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
not FALSE.
(gtk_text_iter_get_bytes_in_line): Likewise.
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
Likewise.
* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
0.
2004-01-30 Not Zed <NotZed@Ximian.com>
Fixes #132929.

View File

@ -1,3 +1,30 @@
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.
* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
not FALSE.
(gtk_file_system_volume_render_icon): Likewise.
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
Likewise.
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
not FALSE.
* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
FALSE.
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
not FALSE.
(gtk_text_iter_get_bytes_in_line): Likewise.
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
Likewise.
* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
0.
2004-01-30 Not Zed <NotZed@Ximian.com>
Fixes #132929.

View File

@ -1,3 +1,30 @@
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.
* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
not FALSE.
(gtk_file_system_volume_render_icon): Likewise.
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
Likewise.
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
not FALSE.
* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
FALSE.
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
not FALSE.
(gtk_text_iter_get_bytes_in_line): Likewise.
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
Likewise.
* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
0.
2004-01-30 Not Zed <NotZed@Ximian.com>
Fixes #132929.

View File

@ -1,3 +1,30 @@
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.
* gtk/gtkfilesystem.c (gtk_file_system_make_path): Return NULL,
not FALSE.
(gtk_file_system_volume_render_icon): Likewise.
* gtk/gtkfilesystemwin32.c (gtk_file_system_win32_make_path):
Likewise.
* gtk/gtktreestore.c (gtk_tree_store_iter_n_children): Return 0,
not FALSE.
* gtk/gtktoolbar.c (gtk_toolbar_get_drop_index): Return -1, not
FALSE.
* gtk/gtktextiter.c (gtk_text_iter_get_chars_in_line): Return 0,
not FALSE.
(gtk_text_iter_get_bytes_in_line): Likewise.
* gdk/x11/gdkcursor-x11.c (gdk_display_get_default_cursor_size):
Likewise.
* gdk/linux-fb/gdkcolor-fb.c (gdk_colors_alloc): Return FALSE, not
0.
2004-01-30 Not Zed <NotZed@Ximian.com>
Fixes #132929.

View File

@ -753,7 +753,7 @@ gdk_colors_alloc (GdkColormap *colormap,
private = GDK_COLORMAP_PRIVATE_DATA (colormap);
if (nplanes > 0)
return 0;
return FALSE;
found = 0;
for (i = 1; i < colormap->size; i++)

View File

@ -560,7 +560,7 @@ gdk_display_supports_cursor_color (GdkDisplay *display)
guint
gdk_display_get_default_cursor_size (GdkDisplay *display)
{
g_return_val_if_fail (GDK_IS_DISPLAY (display), FALSE);
g_return_val_if_fail (GDK_IS_DISPLAY (display), 0);
/* no idea, really */
return 20;

View File

@ -480,7 +480,7 @@ gtk_file_system_volume_render_icon (GtkFileSystem *file_system,
g_return_val_if_fail (volume != NULL, NULL);
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
g_return_val_if_fail (pixel_size > 0, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
return GTK_FILE_SYSTEM_GET_IFACE (file_system)->volume_render_icon (file_system,
volume,
@ -536,7 +536,7 @@ gtk_file_system_make_path (GtkFileSystem *file_system,
g_return_val_if_fail (GTK_IS_FILE_SYSTEM (file_system), NULL);
g_return_val_if_fail (base_path != NULL, NULL);
g_return_val_if_fail (display_name != NULL, NULL);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
return GTK_FILE_SYSTEM_GET_IFACE (file_system)->make_path (file_system, base_path, display_name, error);
}

View File

@ -528,7 +528,7 @@ gtk_file_system_win32_make_path (GtkFileSystem *file_system,
g_error_free (tmp_error);
g_free (base_filename);
return FALSE;
return NULL;
}
full_filename = g_build_filename (base_filename, filename, NULL);

View File

@ -1649,7 +1649,7 @@ gtk_text_iter_get_chars_in_line (const GtkTextIter *iter)
gint count;
GtkTextLineSegment *seg;
g_return_val_if_fail (iter != NULL, FALSE);
g_return_val_if_fail (iter != NULL, 0);
real = gtk_text_iter_make_surreal (iter);
@ -1701,7 +1701,7 @@ gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter)
gint count;
GtkTextLineSegment *seg;
g_return_val_if_fail (iter != NULL, FALSE);
g_return_val_if_fail (iter != NULL, 0);
real = gtk_text_iter_make_surreal (iter);

View File

@ -2944,7 +2944,7 @@ gtk_toolbar_get_drop_index (GtkToolbar *toolbar,
gint x,
gint y)
{
g_return_val_if_fail (GTK_IS_TOOLBAR (toolbar), FALSE);
g_return_val_if_fail (GTK_IS_TOOLBAR (toolbar), -1);
if (!gtk_toolbar_check_new_api (toolbar))
return -1;

View File

@ -717,7 +717,7 @@ gtk_tree_store_iter_n_children (GtkTreeModel *tree_model,
gint i = 0;
g_return_val_if_fail (GTK_IS_TREE_STORE (tree_model), 0);
g_return_val_if_fail (iter == NULL || iter->user_data != NULL, FALSE);
g_return_val_if_fail (iter == NULL || iter->user_data != NULL, 0);
if (iter == NULL)
node = G_NODE (GTK_TREE_STORE (tree_model)->root)->children;