diff options
author | TingPing <tingping@tingping.se> | 2014-12-31 03:36:02 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-12-31 03:56:36 -0500 |
commit | 6ef72988704ff7f7f0bf875b1bb86f4c241b6a29 (patch) | |
tree | f78d9ef6c735a94b3f09ee20645179ca5dcbdf63 | |
parent | 9f7444baa2001616f227ba9a442be824a57e56b9 (diff) |
Remove unnecessary use of void*
-rw-r--r-- | src/fe-gtk/fe-gtk.h | 2 | ||||
-rw-r--r-- | src/fe-gtk/userlistgui.c | 6 | ||||
-rw-r--r-- | src/fe-gtk/userlistgui.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/fe-gtk/fe-gtk.h b/src/fe-gtk/fe-gtk.h index d3e1885b..2e31c494 100644 --- a/src/fe-gtk/fe-gtk.h +++ b/src/fe-gtk/fe-gtk.h @@ -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 */ diff --git a/src/fe-gtk/userlistgui.c b/src/fe-gtk/userlistgui.c index 943bd17b..88896ace 100644 --- a/src/fe-gtk/userlistgui.c +++ b/src/fe-gtk/userlistgui.c @@ -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 diff --git a/src/fe-gtk/userlistgui.h b/src/fe-gtk/userlistgui.h index 7633246a..e24f2ebc 100644 --- a/src/fe-gtk/userlistgui.h +++ b/src/fe-gtk/userlistgui.h @@ -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); |