# HG changeset patch # User Richard Laager # Date 1134078649 0 # Node ID b7d77321b685ca344694cde553c260bb64fa13d8 # Parent 455610a80747190271f76c1fd59c8c9b7b4122cb [gaim-migrate @ 14727] gaim_accounts_reorder() should not be using size_t for new_index. I fixed it to use gint, the type of all the g_list functions involved. committer: Tailor Script diff -r 455610a80747 -r b7d77321b685 plugins/ChangeLog.API --- a/plugins/ChangeLog.API Thu Dec 08 21:08:15 2005 +0000 +++ b/plugins/ChangeLog.API Thu Dec 08 21:50:49 2005 +0000 @@ -68,6 +68,7 @@ the added user, that's left up to the prpls. See the documentation for this function and gaim_account_request_add. + * gaim_accounts_reorder: new_index is now a gint instead of a size_t Removed: * gaim_gtk_sound_{get,set}_mute() (replaced by the /gaim/gtk/sound/mute diff -r 455610a80747 -r b7d77321b685 src/account.c --- a/src/account.c Thu Dec 08 21:08:15 2005 +0000 +++ b/src/account.c Thu Dec 08 21:50:49 2005 +0000 @@ -2146,13 +2146,13 @@ } void -gaim_accounts_reorder(GaimAccount *account, size_t new_index) +gaim_accounts_reorder(GaimAccount *account, gint new_index) { - size_t index; + gint index; GList *l; g_return_if_fail(account != NULL); - g_return_if_fail(new_index >= 0 && new_index <= g_list_length(accounts)); + g_return_if_fail(new_index <= g_list_length(accounts)); index = g_list_index(accounts, account); diff -r 455610a80747 -r b7d77321b685 src/account.h --- a/src/account.h Thu Dec 08 21:08:15 2005 +0000 +++ b/src/account.h Thu Dec 08 21:50:49 2005 +0000 @@ -815,7 +815,7 @@ * @param account The account to reorder. * @param new_index The new index for the account. */ -void gaim_accounts_reorder(GaimAccount *account, size_t new_index); +void gaim_accounts_reorder(GaimAccount *account, gint new_index); /** * Returns a list of all accounts. diff -r 455610a80747 -r b7d77321b685 src/gtkaccount.c --- a/src/gtkaccount.c Thu Dec 08 21:08:15 2005 +0000 +++ b/src/gtkaccount.c Thu Dec 08 21:50:49 2005 +0000 @@ -1987,7 +1987,7 @@ guint info, guint t, AccountsWindow *dialog) { if (sd->target == gdk_atom_intern("GAIM_ACCOUNT", FALSE) && sd->data) { - size_t dest_index; + gint dest_index; GaimAccount *a = NULL; GtkTreePath *path = NULL; GtkTreeViewDropPosition position;