Remove unnecessary use of void*

This commit is contained in:
TingPing 2014-12-31 03:36:02 -05:00
parent 9f7444baa2
commit 6ef7298870
3 changed files with 5 additions and 5 deletions

View File

@ -108,7 +108,7 @@ typedef struct restore_gui
void *tab; /* (chan *) */
/* information stored when this tab isn't front-most */
void *user_model; /* for filling the GtkTreeView */
GtkListStore *user_model; /* for filling the GtkTreeView */
void *buffer; /* xtext_Buffer */
char *input_text; /* input text buffer (while not-front tab) */
char *topic_text; /* topic GtkEntry buffer */

View File

@ -286,7 +286,7 @@ fe_userlist_remove (session *sess, struct User *user)
int sel;
iter = find_row (GTK_TREE_VIEW (sess->gui->user_tree),
sess->res->user_model, user, &sel);
GTK_TREE_MODEL(sess->res->user_model), user, &sel);
if (!iter)
return 0;
@ -316,7 +316,7 @@ fe_userlist_rehash (session *sess, struct User *user)
int nick_color = 0;
iter = find_row (GTK_TREE_VIEW (sess->gui->user_tree),
sess->res->user_model, user, &sel);
GTK_TREE_MODEL(sess->res->user_model), user, &sel);
if (!iter)
return;
@ -718,7 +718,7 @@ void
userlist_show (session *sess)
{
gtk_tree_view_set_model (GTK_TREE_VIEW (sess->gui->user_tree),
sess->res->user_model);
GTK_TREE_MODEL(sess->res->user_model));
}
void

View File

@ -23,7 +23,7 @@
void userlist_set_value (GtkWidget *treeview, gfloat val);
gfloat userlist_get_value (GtkWidget *treeview);
GtkWidget *userlist_create (GtkWidget *box);
void *userlist_create_model (session *sess);
GtkListStore *userlist_create_model (session *sess);
void userlist_show (session *sess);
void userlist_select (session *sess, char *name);
char **userlist_selection_list (GtkWidget *widget, int *num_ret);