Mercurial > pidgin.yaz
diff src/gtklist.h @ 4695:4bdd9a5fd026
[gaim-migrate @ 5006]
This may very well have issues, but it's a slightly better core/ui split,
removing global variables and fixing some GTK+ runtime errors and a couple
segfaults. It's some progress.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 10 Mar 2003 18:16:29 +0000 |
parents | 283fb289c510 |
children | 4be12ff42986 |
line wrap: on
line diff
--- a/src/gtklist.h Mon Mar 10 16:39:46 2003 +0000 +++ b/src/gtklist.h Mon Mar 10 18:16:29 2003 +0000 @@ -23,7 +23,6 @@ #ifndef _GAIM_GTK_LIST_H_ #define _GAIM_GTK_LIST_H_ -extern GtkWidget *blist; enum { STATUS_ICON_COLUMN, @@ -51,8 +50,18 @@ GtkWidget *bbox; /**< A Button Box. */ }; -struct gaim_gtk_buddy_list *gtkblist; +/** + * A GTK+ buddy list node. + */ +struct gaim_gtk_blist_node +{ + GtkTreeIter *iter; /**< The tree iterator. */ + uint timer; /**< The timer handle. */ +}; + +#define GAIM_GTK_BLIST_NODE(node) ((struct gaim_gtk_blist_node *)(node)->ui_data) +#define GAIM_GTK_BLIST(list) ((struct gaim_gtk_buddy_list *)(list)->ui_data) /************************************************************************** * @name GTK+ Conversation API