Mercurial > pidgin
changeset 3841:80eaee3d5845
[gaim-migrate @ 3991]
Kill some warnings, thanks phroggie
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Thu, 31 Oct 2002 02:37:58 +0000 |
parents | 90cd4e84465e |
children | 22ff9c0a1cd7 |
files | src/buddy_chat.c |
diffstat | 1 files changed, 7 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy_chat.c Thu Oct 31 02:20:59 2002 +0000 +++ b/src/buddy_chat.c Thu Oct 31 02:37:58 2002 +0000 @@ -839,7 +839,7 @@ gtk_tree_view_get_path_at_pos(GTK_TREE_VIEW(b->list), event->x, event->y, &path, &column, &x, &y); if (path == NULL) - return; + return FALSE; gtk_tree_selection_select_path(GTK_TREE_SELECTION(gtk_tree_view_get_selection(GTK_TREE_VIEW(b->list))), path); gtk_tree_model_get_iter(GTK_TREE_MODEL(mod), &iter, path); @@ -928,17 +928,15 @@ */ static void add_chat_buddy_common(struct conversation *b, char *name, int pos) { - char tmp[BUF_LONG]; - char ign[1]; - GtkTreeIter iter; - GtkListStore *ls; + GtkTreeIter iter; + GtkListStore *ls; - ls = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(b->list))); + ls = GTK_LIST_STORE(gtk_tree_view_get_model(GTK_TREE_VIEW(b->list))); - gtk_list_store_append(ls, &iter); - gtk_list_store_set(ls, &iter, 0, ignored(b, name) ? "X" : " ", 1, name, -1); - gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(ls), 1, GTK_SORT_ASCENDING); + gtk_list_store_append(ls, &iter); + gtk_list_store_set(ls, &iter, 0, ignored(b, name) ? "X" : " ", 1, name, -1); + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(ls), 1, GTK_SORT_ASCENDING); } void add_chat_buddy(struct conversation *b, char *buddy, char *extra_msg) @@ -979,7 +977,6 @@ int pos; char tmp[BUF_LONG]; GtkTreeIter iter; - GtkTreePath *path; GtkTreeModel *mod; int f = 1; @@ -1055,16 +1052,13 @@ GList *names = b->in_room; char tmp[BUF_LONG]; GtkTreeIter iter; - GtkTreePath *path; GtkTreeModel *mod; int f = 1; - int i = 0; plugin_event(event_chat_buddy_leave, b->gc, b->id, buddy); while (names) { if (!g_strcasecmp((char *)names->data, buddy)) { - char *tmp = names->data; b->in_room = g_list_remove(b->in_room, names->data); mod = gtk_tree_view_get_model(GTK_TREE_VIEW(b->list)); @@ -1116,7 +1110,6 @@ void im_callback(GtkWidget *w, struct conversation *b) { gchar *name; - GList *i; struct conversation *c; GtkTreeIter iter; GtkTreeModel *mod = gtk_tree_view_get_model(GTK_TREE_VIEW(b->list)); @@ -1197,8 +1190,6 @@ GtkWidget *list; GtkCellRenderer *rend; GtkTreeViewColumn *col; - GtkTreeSelection *sel; - GtkTreeIter *iter; char buf[BUF_LONG];