Patch to clean up some sparse warnings in eel



Hi.

Here's a patch that cleans up some sparse warnings in eel.


Index: eel/eel-accessibility.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-accessibility.c,v
retrieving revision 1.10
diff -u -p -r1.10 eel-accessibility.c
--- eel/eel-accessibility.c	26 Nov 2003 09:41:27 -0000	1.10
+++ eel/eel-accessibility.c	23 Jan 2005 22:29:13 -0000
@@ -379,7 +379,7 @@ eel_accessibility_add_simple_text (GType
 }
 
 GType
-eel_accessible_text_get_type ()
+eel_accessible_text_get_type (void)
 {
 	static GType type = 0;
 
Index: eel/eel-editable-label.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-editable-label.c,v
retrieving revision 1.14
diff -u -p -r1.14 eel-editable-label.c
--- eel/eel-editable-label.c	16 Mar 2004 16:05:44 -0000	1.14
+++ eel/eel-editable-label.c	23 Jan 2005 22:29:14 -0000
@@ -3567,7 +3567,7 @@ eel_editable_label_accessible_get_select
   * selection_num is 0.
   */
   if (selection_num != 0)
-     return 0;
+     return NULL;
 
   label = EEL_EDITABLE_LABEL (widget);
   gtk_editable_get_selection_bounds (GTK_EDITABLE (label), start_pos, end_pos);
@@ -3575,7 +3575,7 @@ eel_editable_label_accessible_get_select
   if (*start_pos != *end_pos)
      return gtk_editable_get_chars (GTK_EDITABLE (label), *start_pos, *end_pos);
   else
-     return 0;
+     return NULL;
 }
 
 static gboolean
Index: eel/eel-gdk-extensions.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-gdk-extensions.c,v
retrieving revision 1.22
diff -u -p -r1.22 eel-gdk-extensions.c
--- eel/eel-gdk-extensions.c	27 Oct 2003 20:10:29 -0000	1.22
+++ eel/eel-gdk-extensions.c	23 Jan 2005 22:29:14 -0000
@@ -611,7 +611,7 @@ eel_stipple_bitmap_for_screen (GdkScreen
  * This method is not multiscreen safe. Do not use it.
  */
 GdkBitmap *
-eel_stipple_bitmap ()
+eel_stipple_bitmap (void)
 {
 	return eel_stipple_bitmap_for_screen (gdk_screen_get_default ());
 }
Index: eel/eel-gtk-extensions.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-gtk-extensions.c,v
retrieving revision 1.54
diff -u -p -r1.54 eel-gtk-extensions.c
--- eel/eel-gtk-extensions.c	27 Oct 2003 20:10:30 -0000	1.54
+++ eel/eel-gtk-extensions.c	23 Jan 2005 22:29:14 -0000
@@ -1265,7 +1265,7 @@ eel_gtk_tree_view_set_activate_on_single
 		g_signal_handler_disconnect (tree_view, button_press_id);
 		g_object_set_data (G_OBJECT (tree_view), 
 				   "eel-tree-view-activate", 
-				   0);
+				   NULL);
 	} else if (!button_press_id && should_activate) {
 		button_press_id = g_signal_connect 
 			(tree_view,
Index: eel/eel-preferences.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-preferences.c,v
retrieving revision 1.15
diff -u -p -r1.15 eel-preferences.c
--- eel/eel-preferences.c	11 Jan 2004 19:07:26 -0000	1.15
+++ eel/eel-preferences.c	23 Jan 2005 22:29:14 -0000
@@ -181,8 +181,8 @@ preferences_get_value (const char *name)
 	char *key;
 	PreferencesEntry *entry;
 	
-	g_return_val_if_fail (name != NULL, 0);
-	g_return_val_if_fail (preferences_is_initialized (), 0);
+	g_return_val_if_fail (name != NULL, NULL);
+	g_return_val_if_fail (preferences_is_initialized (), NULL);
 
 	key = preferences_key_make (name);
 	result = eel_gconf_get_value (key);
@@ -444,8 +444,8 @@ eel_preferences_get (const char *name)
  	char *result;
 	GConfValue *value;
 
-	g_return_val_if_fail (name != NULL, 0);
-	g_return_val_if_fail (preferences_is_initialized (), 0);
+	g_return_val_if_fail (name != NULL, NULL);
+	g_return_val_if_fail (preferences_is_initialized (), NULL);
 
 	value = preferences_get_value (name);
 	result = preferences_gconf_value_get_string (value);
@@ -501,8 +501,8 @@ eel_preferences_get_string_list (const c
 	PreferencesEntry *entry;
 	GConfValue *default_value;
 
-	g_return_val_if_fail (name != NULL, 0);
-	g_return_val_if_fail (preferences_is_initialized (), 0);
+	g_return_val_if_fail (name != NULL, NULL);
+	g_return_val_if_fail (preferences_is_initialized (), NULL);
 
 	value = preferences_get_value (name);
 	result = preferences_gconf_value_get_string_list (value);
Index: eel/eel-stock-dialogs.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-stock-dialogs.c,v
retrieving revision 1.27
diff -u -p -r1.27 eel-stock-dialogs.c
--- eel/eel-stock-dialogs.c	25 Aug 2004 07:02:36 -0000	1.27
+++ eel/eel-stock-dialogs.c	23 Jan 2005 22:29:14 -0000
@@ -561,7 +561,7 @@ eel_show_yes_no_dialog (const char *prim
 			const char *no_label,
 			GtkWindow *parent)
 {
-	GtkDialog *dialog = 0;
+	GtkDialog *dialog = NULL;
 	dialog = eel_create_question_dialog (primary_text,
 					     secondary_text,
 					     dialog_title == NULL ? _("Question") : dialog_title,
Index: eel/eel-string-list.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-string-list.c,v
retrieving revision 1.18
diff -u -p -r1.18 eel-string-list.c
--- eel/eel-string-list.c	11 Jan 2004 19:07:26 -0000	1.18
+++ eel/eel-string-list.c	23 Jan 2005 22:29:15 -0000
@@ -489,7 +489,7 @@ eel_string_list_find_by_function (const 
 		return NULL;
 	}
 
-	g_return_val_if_fail (test_function != NULL, FALSE);
+	g_return_val_if_fail (test_function != NULL, NULL);
 	
 	for (node = string_list->strings; node; node = node->next) {
 		if ((* test_function) (string_list, node->data, callback_data)) {
Index: eel/eel-wrap-table.c
===================================================================
RCS file: /cvs/gnome/eel/eel/eel-wrap-table.c,v
retrieving revision 1.20
diff -u -p -r1.20 eel-wrap-table.c
--- eel/eel-wrap-table.c	2 Mar 2004 14:31:25 -0000	1.20
+++ eel/eel-wrap-table.c	23 Jan 2005 22:29:15 -0000
@@ -55,7 +55,7 @@ struct EelWrapTableDetails
 	gboolean homogeneous;
 	GList *children;
 
-	gboolean is_scrolled : 1;
+	guint is_scrolled : 1;
 	guint cols;
 };
 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]