Index: calendar/gui/e-calendar-table.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-calendar-table.c,v
retrieving revision 1.156
diff -u -p -r1.156 e-calendar-table.c
--- calendar/gui/e-calendar-table.c	10 Aug 2006 07:34:29 -0000	1.156
+++ calendar/gui/e-calendar-table.c	8 Oct 2006 12:40:39 -0000
@@ -1255,7 +1255,7 @@ static void
 on_new_task (EPopup *ep, EPopupItem *pitem, void *data)
 {
 	ECalendarTable *cal_table = data;
-	ETasks *tasks = g_object_get_data (cal_table, "tasks");
+	ETasks *tasks = g_object_get_data (G_OBJECT (cal_table), "tasks");
 
 	if (!tasks)
 		return;
Index: calendar/gui/e-day-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-day-view.c,v
retrieving revision 1.303
diff -u -p -r1.303 e-day-view.c
--- calendar/gui/e-day-view.c	28 Jul 2006 09:25:19 -0000	1.303
+++ calendar/gui/e-day-view.c	8 Oct 2006 12:40:46 -0000
@@ -7132,10 +7132,10 @@ e_day_view_on_text_item_event (GnomeCanv
 			pevent->y = ((GdkEventCrossing *)event)->y_root;
 			pevent->tooltip = NULL;
 
-			data->cal_view = day_view;
+			data->cal_view = E_CALENDAR_VIEW (day_view);
 			data->day = day;
 			data->event_num = event_num;
-			data->get_view_event = tooltip_get_view_event;
+			data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, int)) tooltip_get_view_event;
 			pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data);
 			
 		return TRUE;
Index: calendar/gui/e-meeting-list-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-meeting-list-view.c,v
retrieving revision 1.33
diff -u -p -r1.33 e-meeting-list-view.c
--- calendar/gui/e-meeting-list-view.c	18 Sep 2006 13:04:34 -0000	1.33
+++ calendar/gui/e-meeting-list-view.c	8 Oct 2006 12:40:47 -0000
@@ -367,7 +367,7 @@ attendee_edited_cb (GtkCellRenderer *ren
 				e_meeting_store_remove_attendee (model, existing_attendee);
 			}
 		} else {
-			EMeetingAttendee *attendee = e_meeting_attendee_new ();
+			EMeetingAttendee *attendee = (EMeetingAttendee *) e_meeting_attendee_new ();
 
 			if (existing_attendee)
 				e_meeting_list_view_remove_attendee_from_name_selector (E_MEETING_LIST_VIEW (view),
Index: calendar/gui/e-tasks.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-tasks.c,v
retrieving revision 1.132
diff -u -p -r1.132 e-tasks.c
--- calendar/gui/e-tasks.c	30 Jun 2006 09:46:10 -0000	1.132
+++ calendar/gui/e-tasks.c	8 Oct 2006 12:40:48 -0000
@@ -559,7 +559,7 @@ setup_widgets (ETasks *tasks)
 
 	/* create the task list */
 	priv->tasks_view = e_calendar_table_new ();
-	g_object_set_data (priv->tasks_view, "tasks", tasks);
+	g_object_set_data (G_OBJECT (priv->tasks_view), "tasks", tasks);
 	priv->tasks_view_config = e_calendar_table_config_new (E_CALENDAR_TABLE (priv->tasks_view));
 	
 	g_signal_connect (priv->tasks_view, "user_created", G_CALLBACK (user_created_cb), tasks);
Index: calendar/gui/e-week-view.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/e-week-view.c,v
retrieving revision 1.262
diff -u -p -r1.262 e-week-view.c
--- calendar/gui/e-week-view.c	28 Sep 2006 08:40:29 -0000	1.262
+++ calendar/gui/e-week-view.c	8 Oct 2006 12:40:51 -0000
@@ -2128,7 +2128,7 @@ e_week_view_on_scroll (GtkWidget *widget
 	GtkWidget *tool_window = g_object_get_data (G_OBJECT (week_view), "tooltip-window");
 	guint timeout;
 	
-	timeout = GPOINTER_TO_UINT (g_object_get_data (week_view, "tooltip-timeout"));
+	timeout = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (week_view), "tooltip-timeout"));
 	if (timeout) {
 		g_source_remove (timeout);
 		g_object_set_data (G_OBJECT (week_view), "tooltip-timeout", NULL);
@@ -2549,7 +2549,7 @@ tooltip_destroy (EWeekView *week_view, G
 	EWeekViewEvent *pevent;
 	guint timeout;
 	
-	timeout = GPOINTER_TO_UINT (g_object_get_data (week_view, "tooltip-timeout"));
+	timeout = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (week_view), "tooltip-timeout"));
 	if (timeout) {
 		g_source_remove (timeout);
 		g_object_set_data (G_OBJECT (week_view), "tooltip-timeout", NULL);
@@ -2587,10 +2587,10 @@ tooltip_event_cb (GnomeCanvasItem *item,
 			pevent->y = ((GdkEventCrossing *)event)->y_root;
 			pevent->tooltip = NULL;			
 
-			data->cal_view = view;
+			data->cal_view = E_CALENDAR_VIEW (view);
 			data->day = -1;
 			data->event_num = event_num;
-			data->get_view_event = tooltip_get_view_event;
+			data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, int)) tooltip_get_view_event;
 			pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data);
 			g_object_set_data ((GObject *)view, "tooltip-timeout", GUINT_TO_POINTER (pevent->timeout));			
 			
@@ -3160,10 +3160,10 @@ e_week_view_on_text_item_event (GnomeCan
 		pevent->y = ((GdkEventCrossing *)gdkevent)->y_root;
 		pevent->tooltip = NULL;
 
-		data->cal_view = week_view;
+		data->cal_view = E_CALENDAR_VIEW (week_view);
 		data->day = -1;
 		data->event_num = nevent;
-		data->get_view_event = tooltip_get_view_event;
+		data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, int)) tooltip_get_view_event;
 		pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data);		
 		g_object_set_data ((GObject *)week_view, "tooltip-timeout", GUINT_TO_POINTER (pevent->timeout));
 		
Index: calendar/gui/gnome-cal.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/gnome-cal.c,v
retrieving revision 1.401
diff -u -p -r1.401 gnome-cal.c
--- calendar/gui/gnome-cal.c	28 Aug 2006 05:24:15 -0000	1.401
+++ calendar/gui/gnome-cal.c	8 Oct 2006 12:40:54 -0000
@@ -1427,7 +1427,7 @@ view_done_cb (ECalModel *model, ECalenda
 GtkWidget * 
 gnome_calendar_get_tag (GnomeCalendar *gcal)
 {
-	return gcal->priv->date_navigator;
+	return GTK_WIDGET (gcal->priv->date_navigator);
 }
 
 static void
@@ -3444,7 +3444,7 @@ gnome_calendar_cut_clipboard (GnomeCalen
 	} else if (location == FOCUS_TASKPAD)
 		e_calendar_table_cut_clipboard (E_CALENDAR_TABLE (priv->todo));
 	else if (location == FOCUS_MEMOPAD)
-		e_calendar_table_copy_clipboard (E_MEMO_TABLE (priv->memo));
+		e_calendar_table_copy_clipboard (E_CALENDAR_TABLE (priv->memo));
 }
 
 void
@@ -3462,7 +3462,7 @@ gnome_calendar_copy_clipboard (GnomeCale
 	} else if (location == FOCUS_TASKPAD)
 		e_calendar_table_copy_clipboard (E_CALENDAR_TABLE (priv->todo));
 	else if (location == FOCUS_MEMOPAD)
-		e_calendar_table_copy_clipboard (E_MEMO_TABLE (priv->memo));
+		e_calendar_table_copy_clipboard (E_CALENDAR_TABLE (priv->memo));
 }
 
 void
Index: calendar/gui/itip-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/itip-utils.c,v
retrieving revision 1.114
diff -u -p -r1.114 itip-utils.c
--- calendar/gui/itip-utils.c	19 Aug 2006 10:50:26 -0000	1.114
+++ calendar/gui/itip-utils.c	8 Oct 2006 12:40:55 -0000
@@ -603,16 +603,17 @@ comp_to_list (ECalComponentItipMethod me
 		break;
 	case E_CAL_COMPONENT_METHOD_PUBLISH:
 		if(users) {
+			GList *link;
 			len = g_list_length (users);
 			to_list = GNOME_Evolution_Composer_RecipientList__alloc ();
 			to_list->_maximum = len;
 			to_list->_length = 0;
 			to_list->_buffer = CORBA_sequence_GNOME_Evolution_Composer_Recipient_allocbuf (len);
 			
-			for (l = users; l != NULL; l = l->next) {
+			for (link = users; link != NULL; link = link->next) {
 				recipient = &(to_list->_buffer[to_list->_length]);
 				recipient->name = CORBA_string_dup ("");
-				recipient->address = CORBA_string_dup (l->data);
+				recipient->address = CORBA_string_dup (link->data);
 				to_list->_length++;
 			}
 
Index: calendar/gui/tasks-control.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/tasks-control.c,v
retrieving revision 1.88
diff -u -p -r1.88 tasks-control.c
--- calendar/gui/tasks-control.c	10 Aug 2006 07:34:30 -0000	1.88
+++ calendar/gui/tasks-control.c	8 Oct 2006 12:40:55 -0000
@@ -252,7 +252,6 @@ static BonoboUIVerb verbs [] = {
 	BONOBO_UI_VERB ("TasksPrintPreview", tasks_control_print_preview_cmd),
 	BONOBO_UI_VERB ("TasksAssign", tasks_control_assign_cmd),
         BONOBO_UI_VERB ("TasksForward", tasks_control_forward_cmd),
-     	BONOBO_UI_VERB ("ViewPreview", tasks_control_view_preview),
 	BONOBO_UI_VERB_END
 };
 
Index: calendar/gui/dialogs/cal-attachment-select-file.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/cal-attachment-select-file.c,v
retrieving revision 1.4
diff -u -p -r1.4 cal-attachment-select-file.c
--- calendar/gui/dialogs/cal-attachment-select-file.c	25 May 2006 06:04:41 -0000	1.4
+++ calendar/gui/dialogs/cal-attachment-select-file.c	8 Oct 2006 12:40:56 -0000
@@ -82,7 +82,7 @@ run_selector(CompEditor *editor, const c
 							 NULL);
 	
 	gtk_dialog_set_default_response (GTK_DIALOG (selection), GTK_RESPONSE_OK);
-	gtk_file_chooser_set_local_only (selection, FALSE);
+	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (selection), FALSE);
 	
 	if ((flags & SELECTOR_MODE_SAVE) == 0)
 		gtk_file_chooser_set_select_multiple ((GtkFileChooser *) selection, (flags & SELECTOR_MODE_MULTI));
Index: calendar/gui/dialogs/comp-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/comp-editor.c,v
retrieving revision 1.173
diff -u -p -r1.173 comp-editor.c
--- calendar/gui/dialogs/comp-editor.c	30 Sep 2006 08:55:08 -0000	1.173
+++ calendar/gui/dialogs/comp-editor.c	8 Oct 2006 12:40:58 -0000
@@ -2378,7 +2378,7 @@ fill_widgets (CompEditor *editor)
 		GSList *attachment_list = NULL;
 		e_cal_component_get_attachment_list (priv->comp, &attachment_list);
 		set_attachment_list (editor, attachment_list);
-		g_slist_foreach (attachment_list, g_free, NULL);
+		g_slist_foreach (attachment_list, (GFunc) g_free, NULL);
 		g_slist_free (attachment_list);
 	}	
 
Index: calendar/gui/dialogs/delete-comp.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/delete-comp.c,v
retrieving revision 1.28
diff -u -p -r1.28 delete-comp.c
--- calendar/gui/dialogs/delete-comp.c	3 Apr 2006 08:36:49 -0000	1.28
+++ calendar/gui/dialogs/delete-comp.c	8 Oct 2006 12:40:58 -0000
@@ -201,7 +201,7 @@ prompt_retract_dialog (ECalComponent *co
 	gtk_window_set_resizable (GTK_WINDOW (dialog), TRUE);
 	
 	gtk_box_set_spacing ((GtkBox *) (GTK_DIALOG (dialog)->vbox), 12);
-	vbox = GTK_CONTAINER (GTK_DIALOG (dialog)->vbox);
+	vbox = GTK_DIALOG (dialog)->vbox;
 
 	cb = gtk_check_button_new_with_mnemonic (_("_Delete this item from all other recipient's mailboxes?"));
 	gtk_container_add (GTK_CONTAINER (vbox), cb);
Index: composer/e-msg-composer-select-file.c
===================================================================
RCS file: /cvs/gnome/evolution/composer/e-msg-composer-select-file.c,v
retrieving revision 1.42
diff -u -p -r1.42 e-msg-composer-select-file.c
--- composer/e-msg-composer-select-file.c	25 May 2006 18:09:36 -0000	1.42
+++ composer/e-msg-composer-select-file.c	8 Oct 2006 12:41:01 -0000
@@ -83,7 +83,7 @@ get_selector(struct _EMsgComposer *compo
 							 NULL);
 	
 	gtk_dialog_set_default_response (GTK_DIALOG (selection), GTK_RESPONSE_OK);
-	gtk_file_chooser_set_local_only (selection, FALSE);
+	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (selection), FALSE);
 	
 	if ((flags & SELECTOR_MODE_SAVE) == 0)
 		gtk_file_chooser_set_select_multiple ((GtkFileChooser *) selection, (flags & SELECTOR_MODE_MULTI));
Index: e-util/e-dialog-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/e-util/e-dialog-utils.c,v
retrieving revision 1.27
diff -u -p -r1.27 e-dialog-utils.c
--- e-util/e-dialog-utils.c	25 May 2006 06:04:46 -0000	1.27
+++ e-util/e-dialog-utils.c	8 Oct 2006 12:41:06 -0000
@@ -335,7 +335,7 @@ e_file_dialog_save (const char *title, c
 						 NULL);
 	gtk_dialog_set_default_response (GTK_DIALOG (selection), GTK_RESPONSE_ACCEPT);
         gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (selection), dir);
-	gtk_file_chooser_set_local_only (selection, FALSE);
+	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (selection), FALSE);
 	
         if (fname)
 	        gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER (selection), fname);
@@ -424,7 +424,7 @@ e_file_dialog_save_folder (const char *t
 						 GTK_STOCK_SAVE, GTK_RESPONSE_ACCEPT,
 						 NULL);
 	gtk_dialog_set_default_response (GTK_DIALOG (selection), GTK_RESPONSE_ACCEPT);
-	gtk_file_chooser_set_local_only (selection, FALSE);
+	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (selection), FALSE);
 	gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (selection), dir);
 
 	g_signal_connect (G_OBJECT (selection), "response", G_CALLBACK (folderchooser_response), &filename);
Index: mail/em-account-editor.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-account-editor.c,v
retrieving revision 1.48
diff -u -p -r1.48 em-account-editor.c
--- mail/em-account-editor.c	22 Aug 2006 09:58:10 -0000	1.48
+++ mail/em-account-editor.c	8 Oct 2006 12:41:09 -0000
@@ -1777,7 +1777,7 @@ emae_identity_page(EConfig *ec, EConfigI
 	gui->default_account = GTK_TOGGLE_BUTTON (glade_xml_get_widget (xml, "management_default"));
 	if (!mail_config_get_default_account ()
 		|| (account == mail_config_get_default_account ())
-		|| (GPOINTER_TO_INT(g_object_get_data (emae->account, "default_flagged"))) )
+		|| (GPOINTER_TO_INT(g_object_get_data (G_OBJECT (emae->account), "default_flagged"))) )
 			gtk_toggle_button_set_active (gui->default_account, TRUE);
 
 	if (emae->do_signature) {
@@ -2625,7 +2625,7 @@ emae_check_complete(EConfig *ec, const c
 	   editing multiple accounts at a time 
 	 */
 	if (gtk_toggle_button_get_active(emae->priv->default_account))
-		g_object_set_data (emae->account, "default_flagged", GINT_TO_POINTER(1));
+		g_object_set_data (G_OBJECT (emae->account), "default_flagged", GINT_TO_POINTER(1));
 
 	if (pageid == NULL || !strcmp(pageid, "00.identity")) {
 		/* TODO: check the account name is set, and unique in the account list */
Index: mail/em-folder-view.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-view.c,v
retrieving revision 1.162
diff -u -p -r1.162 em-folder-view.c
--- mail/em-folder-view.c	29 Sep 2006 18:04:39 -0000	1.162
+++ mail/em-folder-view.c	8 Oct 2006 12:41:11 -0000
@@ -561,7 +561,7 @@ emfv_setup_view_instance(EMFolderView *e
 	id = mail_config_folder_to_safe_url (emfv->folder);
 	p->view_instance = gal_view_instance_new (collection, id);
 	
-	show_wide = em_folder_browser_get_wide (emfv);
+	show_wide = em_folder_browser_get_wide ((EMFolderBrowser *) emfv);
 	if (show_wide) {
 		char *safe_id, *filename;
 		
@@ -1515,7 +1515,7 @@ emfv_message_search(BonoboUIComponent *u
 	else  {
                 /* We are in top level. Just grab focus to Search Bar */
 		gtk_widget_grab_focus (((ESearchBar *)((EMFolderBrowser *) emfv)->search)->entry);
-		gtk_option_menu_set_history (((ESearchBar *)((EMFolderBrowser *) emfv)->search)->scopeoption, 3);
+		gtk_option_menu_set_history (GTK_OPTION_MENU (((ESearchBar *)((EMFolderBrowser *) emfv)->search)->scopeoption), 3);
 	}
 }
 
@@ -1920,7 +1920,7 @@ emfv_enable_menus(EMFolderView *emfv)
 			EMMenuTargetSelect *t;
 
 			t = em_menu_target_new_select(emfv->menu, emfv->folder, emfv->folder_uri, message_list_get_selected(emfv->list));
-			t->target.widget = emfv;
+			t->target.widget = GTK_WIDGET (emfv);
 			e_menu_update_target((EMenu *)emfv->menu, t);
 		}
 	}
Index: mail/em-format-html-display.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-format-html-display.c,v
retrieving revision 1.106
diff -u -p -r1.106 em-format-html-display.c
--- mail/em-format-html-display.c	30 Sep 2006 06:33:42 -0000	1.106
+++ mail/em-format-html-display.c	8 Oct 2006 12:41:13 -0000
@@ -465,7 +465,7 @@ void em_format_html_display_set_caret_mo
 EAttachmentBar *
 em_format_html_display_get_bar (EMFormatHTMLDisplay *efhd)
 {
-	return efhd->priv->attachment_bar;
+	return E_ATTACHMENT_BAR (efhd->priv->attachment_bar);
 }
 
 void
@@ -618,16 +618,16 @@ clear_button_clicked_cb (GtkWidget *widg
 {
 	struct _EMFormatHTMLDisplayPrivate *p = efhd->priv;
 
-	gtk_entry_set_text (p->search_entry, "");
+	gtk_entry_set_text (GTK_ENTRY (p->search_entry), "");
 
-	gtk_signal_emit_by_name (p->search_entry, "activate", efhd);
+	gtk_signal_emit_by_name (GTK_OBJECT (p->search_entry), "activate", efhd);
 }
 
 /* Controlls the visibility of icon_entry's visibility */
 static void
 icon_entry_changed_cb (GtkWidget *widget, GtkWidget *clear_button)
 {
-	const char *text = gtk_entry_get_text (widget);
+	const char *text = gtk_entry_get_text (GTK_ENTRY (widget));
 
 	if (text && *text)
 		gtk_widget_show (clear_button);
@@ -651,15 +651,15 @@ em_format_html_get_search_dialog (EMForm
 	/* Icon entry */
 	icon_entry = e_icon_entry_new ();
 	p->search_entry = e_icon_entry_get_entry (E_ICON_ENTRY (icon_entry));
-	gtk_label_set_mnemonic_widget (label1, p->search_entry);
+	gtk_label_set_mnemonic_widget (GTK_LABEL (label1), p->search_entry);
 	gtk_widget_show (p->search_entry);
 	clear_button = e_icon_entry_create_button ("gtk-clear");
 	e_icon_entry_pack_widget (E_ICON_ENTRY (icon_entry), clear_button, FALSE);
 	gtk_widget_show_all (icon_entry);
 	gtk_widget_hide (clear_button);
 
-	g_signal_connect (G_OBJECT (clear_button), "button-press-event", clear_button_clicked_cb, efhd);
-	g_signal_connect (G_OBJECT (p->search_entry), "changed", icon_entry_changed_cb, clear_button);
+	g_signal_connect (G_OBJECT (clear_button), "button-press-event", (GCallback) clear_button_clicked_cb, efhd);
+	g_signal_connect (G_OBJECT (p->search_entry), "changed", (GCallback) icon_entry_changed_cb, clear_button);
 
 	gtk_box_pack_start ((GtkBox *)(p->search_entry_box), icon_entry, FALSE, FALSE, 0);
 //	gtk_box_pack_start ((GtkBox *)(p->search_entry_box), icon_entry, TRUE, TRUE, 0);
@@ -673,7 +673,7 @@ em_format_html_get_search_dialog (EMForm
 	gtk_box_pack_start ((GtkBox *)(hbox2), button3, FALSE, FALSE, 5);
 
 	button2 = gtk_button_new_with_mnemonic (_("Fo_rward"));
-	gtk_button_set_image (button2, gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_BUTTON));
+	gtk_button_set_image (GTK_BUTTON (button2), gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_BUTTON));
 	gtk_widget_show (button2);
 	gtk_box_pack_start ((GtkBox *)(hbox2), button2, FALSE, FALSE, 5);
 
@@ -684,7 +684,7 @@ em_format_html_get_search_dialog (EMForm
 	p->search_matches_label = gtk_label_new ("");
 	gtk_widget_show (p->search_matches_label);
 	gtk_box_pack_start ((GtkBox *)(hbox2), p->search_matches_label, TRUE, TRUE, 0);
-	p->search_dialog = (GtkWidget *)hbox2;
+	p->search_dialog = GTK_H_BOX (hbox2);
 	
 	p->search_wrap = FALSE;
 
@@ -704,7 +704,7 @@ static void
 set_focus_cb (GtkWidget *window, GtkWidget *widget, EMFormatHTMLDisplay *efhd)
 {
 	struct _EMFormatHTMLDisplayPrivate *p = efhd->priv;
-	GtkWidget *sbar = p->search_dialog;
+	GtkWidget *sbar = GTK_WIDGET (p->search_dialog);
 	
 	while (widget != NULL && widget != sbar) {
 		widget = widget->parent;
@@ -754,11 +754,11 @@ em_format_html_display_search_with (EMFo
                gtk_widget_show ( (GtkWidget *)(p->search_dialog));
 	       
 	       /* Set the query */
-	       gtk_entry_set_text ( (GtkWidget *) p->search_entry, word);
+	       gtk_entry_set_text (GTK_ENTRY (p->search_entry), word);
 	       gtk_widget_hide ( (GtkWidget *) p->search_entry_box);
 
 	       /* Trigger the search */
-	       gtk_signal_emit_by_name (p->search_entry, "activate", efhd);
+	       gtk_signal_emit_by_name (GTK_OBJECT (p->search_entry), "activate", efhd);
 	}
 }
 
@@ -768,7 +768,7 @@ em_format_html_display_search_close (EMF
 	struct _EMFormatHTMLDisplayPrivate *p = efhd->priv;
 
 	if (p->search_dialog)
-		efhd_search_destroy(p->search_dialog, efhd);
+		efhd_search_destroy(GTK_WIDGET (p->search_dialog), efhd);
 }
 
 void
Index: mail/em-format-html.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-format-html.c,v
retrieving revision 1.93
diff -u -p -r1.93 em-format-html.c
--- mail/em-format-html.c	29 Sep 2006 17:54:48 -0000	1.93
+++ mail/em-format-html.c	8 Oct 2006 12:41:15 -0000
@@ -1641,7 +1641,7 @@ efh_format_header(EMFormat *emf, CamelSt
 		label = _(name);
 		
 		html = g_string_new("");
-		img = efh_format_address(emf, html, addrs, label);
+		img = efh_format_address(efh, html, addrs, label);
 		
 		if (img) {
 //			str_field = g_strdup_printf ("<table><tr><td valign=top>%s</td><td valign=top><b>%s:</b></td></tr></table>", img, label);
Index: mail/em-format.h
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-format.h,v
retrieving revision 1.16
diff -u -p -r1.16 em-format.h
--- mail/em-format.h	19 May 2005 06:06:35 -0000	1.16
+++ mail/em-format.h	8 Oct 2006 12:41:15 -0000
@@ -303,11 +303,11 @@ void em_format_pull_level(EMFormat *emf)
 #define em_format_format_clone(emf, folder, uid, msg, src) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((emf), (folder), (uid), (msg), (src))
 /* formats a new message */
 #define em_format_format(emf, folder, uid, msg) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((emf), (folder), (uid), (msg), NULL)
-#define em_format_redraw(emf) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((emf),				\
+#define em_format_redraw(emf) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_clone((EMFormat *)(emf),				\
 										       ((EMFormat *)(emf))->folder,	\
 										       ((EMFormat *)(emf))->uid,	\
 										       ((EMFormat *)(emf))->message,	\
-										       (emf))
+										       (EMFormat *)(emf))
 void em_format_format_error(EMFormat *emf, struct _CamelStream *stream, const char *fmt, ...);
 #define em_format_format_attachment(emf, stream, msg, type, info) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_attachment((emf), (stream), (msg), (type), (info))
 #define em_format_format_source(emf, stream, msg) ((EMFormatClass *)G_OBJECT_GET_CLASS(emf))->format_source((emf), (stream), (msg))
Index: mail/em-mailer-prefs.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-mailer-prefs.c,v
retrieving revision 1.39
diff -u -p -r1.39 em-mailer-prefs.c
--- mail/em-mailer-prefs.c	9 Aug 2006 08:43:27 -0000	1.39
+++ mail/em-mailer-prefs.c	8 Oct 2006 12:41:16 -0000
@@ -832,7 +832,7 @@ em_mailer_prefs_construct (EMMailerPrefs
 		gtk_widget_set_sensitive ((GtkWidget *) prefs->notify_play_sound, FALSE);
 	
 	buf = gconf_client_get_string (prefs->gconf, "/apps/evolution/mail/notify/sound", NULL);
-	gtk_file_chooser_set_filename (GTK_FILE_CHOOSER_BUTTON (prefs->notify_sound_file), buf ? buf : "");
+	gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (prefs->notify_sound_file), buf ? buf : "");
 	g_signal_connect (GTK_FILE_CHOOSER_BUTTON (prefs->notify_sound_file), "selection-changed",
 			  G_CALLBACK (notify_sound_changed), prefs);
 	if (val != MAIL_CONFIG_NOTIFY_PLAY_SOUND)
Index: mail/em-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-utils.c,v
retrieving revision 1.83
diff -u -p -r1.83 em-utils.c
--- mail/em-utils.c	23 Aug 2006 14:05:19 -0000	1.83
+++ mail/em-utils.c	8 Oct 2006 12:41:17 -0000
@@ -391,7 +391,7 @@ emu_get_save_filesel (GtkWidget *parent,
 					       GTK_STOCK_SAVE, GTK_RESPONSE_OK,
 					       NULL);
 	gtk_dialog_set_default_response (GTK_DIALOG (filesel), GTK_RESPONSE_OK);
-	gtk_file_chooser_set_local_only (filesel, FALSE);
+	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (filesel), FALSE);
 #else
 	char *filename;
 
Index: mail/em-vfolder-rule.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-vfolder-rule.c,v
retrieving revision 1.12
diff -u -p -r1.12 em-vfolder-rule.c
--- mail/em-vfolder-rule.c	11 Jul 2006 17:20:36 -0000	1.12
+++ mail/em-vfolder-rule.c	8 Oct 2006 12:41:17 -0000
@@ -414,17 +414,17 @@ static void
 select_source_with_changed(GtkWidget *widget, struct _source_data *data)
 {
 	em_vfolder_rule_with_t with;
-	GList *group = NULL;
+	GSList *group = NULL;
 	gboolean sensitive = FALSE;
 	gint i = 0;	
 
-	if ( !gtk_toggle_button_get_active (widget) )
+	if ( !gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget)) )
 		return;
 
-	group = gtk_radio_button_get_group (widget);
+	group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (widget));
 
-	for (i=0; i< g_list_length(group); i++) {
-		if ( g_list_nth_data (group, with = i) == widget ) 
+	for (i=0; i< g_slist_length(group); i++) {
+		if ( g_slist_nth_data (group, with = i) == widget ) 
 			break;
 	}
 
@@ -671,9 +671,9 @@ get_widget(FilterRule *fr, RuleContext *
 
 	data->source_selector = (GtkWidget *)glade_xml_get_widget (gui, "source_selector");
 
-	rb = g_list_nth_data(gtk_radio_button_get_group (rb), vr->with);
-	gtk_toggle_button_set_active (rb, TRUE);
-	gtk_signal_emit_by_name (rb, "toggled");
+	rb = g_slist_nth_data(gtk_radio_button_get_group (rb), vr->with);
+	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (rb), TRUE);
+	gtk_signal_emit_by_name (GTK_OBJECT (rb), "toggled");
 	
 	set_sensitive(data);
 		
Index: mail/mail-ops.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-ops.c,v
retrieving revision 1.458
diff -u -p -r1.458 mail-ops.c
--- mail/mail-ops.c	23 Aug 2006 07:59:00 -0000	1.458
+++ mail/mail-ops.c	8 Oct 2006 12:41:19 -0000
@@ -1792,7 +1792,7 @@ mail_get_message(CamelFolder *folder, co
 	camel_object_ref(folder);
 	m->uid = g_strdup(uid);
 	m->data = data;
-	m->done = done;
+	m->done = (void (*) (CamelFolder *, const char *, CamelMimeMessage *, void *)) done;
 	m->cancel = camel_operation_new(NULL, NULL);
 	
 	e_thread_put(thread, (EMsg *)m);
@@ -1830,7 +1830,7 @@ mail_get_messagex(CamelFolder *folder, c
 	camel_object_ref(folder);
 	m->uid = g_strdup(uid);
 	m->data = data;
-	m->done = done;
+	m->done = (void (*) (CamelFolder *, const char *, CamelMimeMessage *, void *)) done;
 	m->cancel = camel_operation_new(NULL, NULL);
 	
 	e_thread_put(thread, (EMsg *)m);
Index: mail/mail-send-recv.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/mail-send-recv.c,v
retrieving revision 1.110
diff -u -p -r1.110 mail-send-recv.c
--- mail/mail-send-recv.c	21 Aug 2006 16:25:57 -0000	1.110
+++ mail/mail-send-recv.c	8 Oct 2006 12:41:20 -0000
@@ -388,7 +388,7 @@ build_dialog (EAccountList *accounts, Ca
 					GTK_POLICY_AUTOMATIC,
 					GTK_POLICY_AUTOMATIC);
 
-	gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), table);
+	gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), GTK_WIDGET (table));
 	gtk_box_pack_start (GTK_BOX (gd->vbox), scrolled_window,TRUE, TRUE, 0); 
 	gtk_widget_set_usize (gd->vbox, 600,200);
 	gtk_widget_show (GTK_WIDGET (scrolled_window));	
Index: mail/message-list.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/message-list.c,v
retrieving revision 1.438
diff -u -p -r1.438 message-list.c
--- mail/message-list.c	28 Sep 2006 08:56:51 -0000	1.438
+++ mail/message-list.c	8 Oct 2006 12:41:23 -0000
@@ -1550,9 +1550,9 @@ static ECell * create_composite_cell (in
 		      "color_column", COL_COLOUR,
 		      NULL);
 	
-	e_cell_hbox_append (cell_hbox, cell_from, show_email ? col : alt_col, 68);
-	e_cell_hbox_append (cell_hbox, cell_attach, COL_ATTACHMENT, 5);
-	e_cell_hbox_append (cell_hbox, cell_date, COL_SENT, 27);
+	e_cell_hbox_append (E_CELL_HBOX (cell_hbox), cell_from, show_email ? col : alt_col, 68);
+	e_cell_hbox_append (E_CELL_HBOX (cell_hbox), cell_attach, COL_ATTACHMENT, 5);
+	e_cell_hbox_append (E_CELL_HBOX (cell_hbox), cell_date, COL_SENT, 27);
 	
 	cell_sub = e_cell_text_new(fixed_name? fixed_name:NULL, GTK_JUSTIFY_LEFT);
 	g_object_set (G_OBJECT (cell_sub),
@@ -1560,12 +1560,12 @@ static ECell * create_composite_cell (in
 		      "color_column", COL_COLOUR,
 		      NULL);	
 	cell_tree = e_cell_tree_new (NULL, NULL, TRUE, cell_sub);
-	e_cell_vbox_append (cell_vbox, cell_hbox, COL_FROM);
-	e_cell_vbox_append (cell_vbox, cell_tree, COL_SUBJECT);
+	e_cell_vbox_append (E_CELL_VBOX (cell_vbox), cell_hbox, COL_FROM);
+	e_cell_vbox_append (E_CELL_VBOX (cell_vbox), cell_tree, COL_SUBJECT);
 
-	g_object_set_data (cell_vbox, "cell_date", cell_date);
-	g_object_set_data (cell_vbox, "cell_sub", cell_sub);
-	g_object_set_data (cell_vbox, "cell_from", cell_from);
+	g_object_set_data (G_OBJECT (cell_vbox), "cell_date", cell_date);
+	g_object_set_data (G_OBJECT (cell_vbox), "cell_sub", cell_sub);
+	g_object_set_data (G_OBJECT (cell_vbox), "cell_from", cell_from);
 
 	g_free (fixed_name);
 
@@ -1575,8 +1575,8 @@ static ECell * create_composite_cell (in
 static void
 composite_cell_set_strike_col (ECell *cell, int col)
 {
-	g_object_set (g_object_get_data(cell, "cell_date"),  "strikeout_column", col, NULL);
-	g_object_set (g_object_get_data(cell, "cell_from"),  "strikeout_column", col, NULL);	
+	g_object_set (G_OBJECT (g_object_get_data(G_OBJECT (cell), "cell_date")),  "strikeout_column", col, NULL);
+	g_object_set (G_OBJECT (g_object_get_data(G_OBJECT (cell), "cell_from")),  "strikeout_column", col, NULL);	
 }
 	
 static ETableExtras *
@@ -1719,7 +1719,7 @@ message_list_setup_etree (MessageList *m
 		d(printf ("folder name is '%s'\n", name));
 		
 		path = mail_config_folder_to_cachename (message_list->folder, "et-expanded-");
-		g_object_set_data (((GnomeCanvasItem *) item)->canvas, "freeze-cursor", 1);
+		g_object_set_data (G_OBJECT (((GnomeCanvasItem *) item)->canvas), "freeze-cursor", 1);
 
 		if (path && g_stat (path, &st) == 0 && st.st_size > 0 && S_ISREG (st.st_mode)) {
 			/* build based on saved file */
Index: plugins/bbdb/gaimbuddies.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/bbdb/gaimbuddies.c,v
retrieving revision 1.9
diff -u -p -r1.9 gaimbuddies.c
--- plugins/bbdb/gaimbuddies.c	17 Aug 2006 19:42:52 -0000	1.9
+++ plugins/bbdb/gaimbuddies.c	8 Oct 2006 12:41:23 -0000
@@ -250,7 +250,7 @@ bbdb_merge_buddy_to_contact (EBook *book
 			photo = g_new0 (EContactPhoto, 1);
 			photo->type = E_CONTACT_PHOTO_TYPE_INLINED;
 
-			if (! g_file_get_contents (b->icon, &photo->data.inlined.data, &photo->data.inlined.length, &error)) {
+			if (! g_file_get_contents (b->icon, (gchar **) &photo->data.inlined.data, &photo->data.inlined.length, &error)) {
 				g_warning ("bbdb: Could not read buddy icon: %s\n", error->message);
 				g_error_free (error);
 				for (l = ims; l != NULL; l = l->next)
Index: plugins/itip-formatter/itip-formatter.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/itip-formatter/itip-formatter.c,v
retrieving revision 1.76
diff -u -p -r1.76 itip-formatter.c
--- plugins/itip-formatter/itip-formatter.c	23 Aug 2006 14:05:20 -0000	1.76
+++ plugins/itip-formatter/itip-formatter.c	8 Oct 2006 12:41:25 -0000
@@ -846,7 +846,7 @@ update_item (FormatItipPObject *pitip, I
 			}
 		}
 
-		g_slist_foreach (attachments, g_free, NULL);
+		g_slist_foreach (attachments, (GFunc) g_free, NULL);
 		g_slist_free (attachments);
 				
 		e_cal_component_set_attachment_list (clone_comp, new_attachments);
Index: plugins/save-calendar/save-calendar.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/save-calendar/save-calendar.c,v
retrieving revision 1.11
diff -u -p -r1.11 save-calendar.c
--- plugins/save-calendar/save-calendar.c	25 May 2006 06:06:14 -0000	1.11
+++ plugins/save-calendar/save-calendar.c	8 Oct 2006 12:41:25 -0000
@@ -175,7 +175,7 @@ ask_destination_and_save (EPlugin *ep, E
 
 	gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
 	gtk_file_chooser_set_extra_widget (GTK_FILE_CHOOSER (dialog), extra_widget);
-	gtk_file_chooser_set_local_only (dialog, FALSE);
+	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (dialog), FALSE);
 #else
 	dialog = gtk_file_selection_new (_("Select destination file"));
 	gtk_box_pack_start (GTK_BOX (GTK_FILE_SELECTION (dialog)->main_vbox), extra_widget, FALSE, TRUE, 0);
Index: shell/e-shell-window.c
===================================================================
RCS file: /cvs/gnome/evolution/shell/e-shell-window.c,v
retrieving revision 1.55
diff -u -p -r1.55 e-shell-window.c
--- shell/e-shell-window.c	28 Sep 2006 08:48:15 -0000	1.55
+++ shell/e-shell-window.c	8 Oct 2006 12:41:27 -0000
@@ -858,7 +858,7 @@ impl_dispose (GObject *object)
 		self->priv->store_window_size_timer = 0;
 		
 		/* There was a timer. Let us store the settings.*/
-		store_window_size (self);		
+		store_window_size (GTK_WIDGET (self));		
 	}
 	
 	#ifdef NM_SUPPORT_GLIB
Index: widgets/misc/e-icon-entry.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/misc/e-icon-entry.c,v
retrieving revision 1.4
diff -u -p -r1.4 e-icon-entry.c
--- widgets/misc/e-icon-entry.c	20 Aug 2006 14:47:41 -0000	1.4
+++ widgets/misc/e-icon-entry.c	8 Oct 2006 12:41:28 -0000
@@ -371,13 +371,13 @@ e_icon_entry_create_button (const char *
 
 	eventbox = gtk_event_box_new ();
 	gtk_container_set_border_width (GTK_CONTAINER (eventbox), 2);
-	gtk_event_box_set_visible_window ((eventbox), FALSE);
+	gtk_event_box_set_visible_window (GTK_EVENT_BOX (eventbox), FALSE);
 
 	image = gtk_image_new_from_stock (stock, GTK_ICON_SIZE_MENU);
 	gtk_container_add (GTK_CONTAINER (eventbox), image);
 
-	g_signal_connect_after (eventbox, "enter-notify-event", set_cursor, NULL);
-	g_signal_connect_after (eventbox, "leave-notify-event", set_cursor, NULL);
+	g_signal_connect_after (eventbox, "enter-notify-event", (GCallback) set_cursor, NULL);
+	g_signal_connect_after (eventbox, "leave-notify-event", (GCallback) set_cursor, NULL);
 
 	return eventbox;
 }
Index: widgets/table/e-table-header-item.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/table/e-table-header-item.c,v
retrieving revision 1.137
diff -u -p -r1.137 e-table-header-item.c
--- widgets/table/e-table-header-item.c	18 Sep 2006 13:06:26 -0000	1.137
+++ widgets/table/e-table-header-item.c	8 Oct 2006 12:41:29 -0000
@@ -1509,10 +1509,10 @@ static EPopupMenu ethi_context_menu [] =
 static void
 sort_by_id (GtkWidget *menu_item, ETableHeaderItem *ethi)
 {
-	int col = GPOINTER_TO_INT (g_object_get_data(menu_item, "col-number"));
+	int col = GPOINTER_TO_INT (g_object_get_data(G_OBJECT (menu_item), "col-number"));
 	ETableCol *ecol;
 
-	if (!gtk_check_menu_item_get_active(menu_item))
+	if (!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM (menu_item)))
 		return;
 	
 	ecol = e_table_header_get_column (ethi->full_header, col);
@@ -1522,7 +1522,7 @@ sort_by_id (GtkWidget *menu_item, ETable
 static void
 popup_custom (GtkWidget *menu_item, EthiHeaderInfo *info)
 {
-	if (!gtk_check_menu_item_get_active(menu_item))
+	if (!gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM (menu_item)))
 		return;
 
 	ethi_popup_customize_view(menu_item, info);
@@ -1532,9 +1532,9 @@ ethi_header_context_menu (ETableHeaderIt
 {
 	EthiHeaderInfo *info = g_new(EthiHeaderInfo, 1);
 	ETableCol *col;
-	GtkMenu *popup, *sub_menu;;
+	GtkMenu *popup;
 	int ncol, sort_count, sort_col;
-	GtkWidget *menu_item;
+	GtkWidget *menu_item, *sub_menu;
 	GSList *group = NULL;
 	ETableSortColumn column;
 	gboolean ascending;
@@ -1555,7 +1555,7 @@ ethi_header_context_menu (ETableHeaderIt
 	gtk_widget_show (menu_item);
 	sub_menu = gtk_menu_new ();
 	gtk_widget_show (sub_menu);
-	gtk_menu_item_set_submenu (menu_item, sub_menu);
+	gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_item), sub_menu);
 	gtk_menu_shell_prepend (GTK_MENU_SHELL (popup), menu_item);
 
 	sort_count = e_table_sort_info_sorting_get_count(ethi->sort_info);
@@ -1601,7 +1601,7 @@ ethi_header_context_menu (ETableHeaderIt
 		
 		if (ncol == sort_col)
 			gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menu_item), TRUE);
-		g_object_set_data (menu_item, "col-number", GINT_TO_POINTER (ncol));
+		g_object_set_data (G_OBJECT (menu_item), "col-number", GINT_TO_POINTER (ncol));
 		g_signal_connect (menu_item, "activate", G_CALLBACK (sort_by_id), ethi);
 	}
 	
Index: widgets/table/e-table-header-utils.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/table/e-table-header-utils.c,v
retrieving revision 1.24
diff -u -p -r1.24 e-table-header-utils.c
--- widgets/table/e-table-header-utils.c	18 Sep 2006 13:06:26 -0000	1.24
+++ widgets/table/e-table-header-utils.c	8 Oct 2006 12:41:29 -0000
@@ -350,7 +350,7 @@ e_table_header_draw_button (GdkDrawable 
 		gtk_widget_ensure_style (window);
 		gtk_widget_ensure_style (button);
 		g_label = GTK_BIN(button)->child;
-		g_object_add_weak_pointer (G_OBJECT (g_label), &g_label);
+		g_object_add_weak_pointer (G_OBJECT (g_label), (gpointer *) &g_label);
 		gtk_widget_ensure_style (g_label);
 	}
 
Index: widgets/table/e-table-item.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/table/e-table-item.c,v
retrieving revision 1.248
diff -u -p -r1.248 e-table-item.c
--- widgets/table/e-table-item.c	18 Sep 2006 13:06:26 -0000	1.248
+++ widgets/table/e-table-item.c	8 Oct 2006 12:41:32 -0000
@@ -1672,7 +1672,7 @@ eti_tree_unfreeze (GtkWidget *widget,  G
 {
 
 	if (widget)
-		g_object_set_data (widget, "freeze-cursor", 0);
+		g_object_set_data (G_OBJECT (widget), "freeze-cursor", 0);
 
 	return FALSE;
 }
Index: widgets/table/e-tree-table-adapter.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/table/e-tree-table-adapter.c,v
retrieving revision 1.64
diff -u -p -r1.64 e-tree-table-adapter.c
--- widgets/table/e-tree-table-adapter.c	18 Aug 2006 18:50:11 -0000	1.64
+++ widgets/table/e-tree-table-adapter.c	8 Oct 2006 12:41:33 -0000
@@ -746,7 +746,8 @@ etta_proxy_no_change (ETreeModel *etm, E
 	e_table_model_no_change(E_TABLE_MODEL(etta));
 }
 
-guint resort_model (ETreeTableAdapter *etta)
+static gboolean
+resort_model (ETreeTableAdapter *etta)
 {
 	etta_sort_info_changed (NULL, etta);
 	return FALSE;
@@ -761,7 +762,7 @@ etta_proxy_node_changed (ETreeModel *etm
 	/* FIXME: Really it shouldnt be required. But a lot of thread
 	 * which were supposed to be present in the list is way below
 	 */
-	g_idle_add (resort_model, etta);
+	g_idle_add ((GSourceFunc) resort_model, etta);
 }
 
 static void
