27#ifndef _PIDGINBLIST_H_
28#define _PIDGINBLIST_H_
35 STATUS_ICON_VISIBLE_COLUMN,
40 BUDDY_ICON_VISIBLE_COLUMN,
43 GROUP_EXPANDER_COLUMN,
44 GROUP_EXPANDER_VISIBLE_COLUMN,
45 CONTACT_EXPANDER_COLUMN,
46 CONTACT_EXPANDER_VISIBLE_COLUMN,
48 EMBLEM_VISIBLE_COLUMN,
50 PROTOCOL_ICON_VISIBLE_COLUMN,
56 PIDGIN_STATUS_ICON_LARGE,
57 PIDGIN_STATUS_ICON_SMALL
59} PidginStatusIconSize;
83 GtkCellRenderer *text_rend;
135#define PIDGIN_BLIST(list) ((PidginBuddyList *)purple_blist_get_ui_data())
136#define PIDGIN_IS_PIDGIN_BLIST(list) \
137 (purple_blist_get_ui_ops() == pidgin_blist_get_ui_ops())
195void pidgin_blist_update_columns(
void);
196void pidgin_blist_update_refresh_timeout(
void);
215 PidginStatusIconSize size);
292 pidgin_blist_sort_function func;
399 GDestroyNotify destroy);
GTK+ Buddy List Theme API.
void pidgin_blist_init(void)
Initializes the GTK+ blist system.
void pidgin_append_blist_node_proto_menu(GtkWidget *menu, PurpleConnection *gc, PurpleBlistNode *node)
Appends the protocol specific menu items for a PurpleBlistNode TODO: Rename these.
GdkPixbuf * pidgin_blist_get_status_icon(PurpleBlistNode *node, PidginStatusIconSize size)
Useful for the buddy ticker.
void pidgin_blist_sort_method_unreg(const char *id)
Unregisters a buddy list sorting method.
void pidgin_blist_visibility_manager_add(void)
Increases the reference count of visibility managers.
void pidgin_blist_draw_tooltip(PurpleBlistNode *node, GtkWidget *widget)
Creates the Buddy List tooltip at the current pointer location for the given buddy list node.
void pidgin_blist_sort_method_set(const char *id)
Sets a buddy list sorting method.
void pidgin_blist_update_plugin_actions(void)
Updates the plugin actions menu on the GTK+ buddy list window.
gchar * pidgin_blist_get_name_markup(PurpleBuddy *buddy, gboolean selected, gboolean aliased)
Returns a buddy's Pango markup appropriate for setting in a GtkCellRenderer.
void pidgin_blist_make_buddy_menu(GtkWidget *menu, PurpleBuddy *buddy, gboolean sub)
Populates a menu with the items shown on the buddy list for a buddy.
GdkPixbuf * pidgin_blist_get_emblem(PurpleBlistNode *node)
Returns the blist emblem.
void pidgin_blist_add_alert(GtkWidget *widget)
Adds a mini-alert to the blist scrollbook.
PidginBlistTheme * pidgin_blist_get_theme(void)
Gets Pidgin's current buddy list theme.
void pidgin_blist_visibility_manager_remove(void)
Decreases the reference count of visibility managers.
void pidgin_blist_sort_method_reg(const char *id, const char *name, pidgin_blist_sort_function func)
Registers a buddy list sorting method.
void * pidgin_blist_get_handle(void)
Get the handle for the GTK+ blist system.
void pidgin_append_blist_node_extended_menu(GtkWidget *menu, PurpleBlistNode *node)
Appends the extended menu items for a PurpleBlistNode TODO: Rename these.
void pidgin_append_blist_node_privacy_menu(GtkWidget *menu, PurpleBlistNode *node)
Appends the privacy menu items for a PurpleBlistNode TODO: Rename these.
gboolean pidgin_blist_joinchat_is_showable(void)
Determines if showing the join chat dialog is a valid action.
void pidgin_blist_set_theme(PidginBlistTheme *theme)
Sets the current theme for Pidgin to use.
void pidgin_blist_tooltip_destroy(void)
Destroys the current (if any) Buddy List tooltip.
PurpleBlistUiOps * pidgin_blist_get_ui_ops(void)
Returns the UI operations structure for the buddy list.
GList * pidgin_blist_get_sort_methods(void)
Gets the current list of sort methods.
void pidgin_blist_refresh(PurpleBuddyList *list)
Refreshes all the nodes of the buddy list.
PidginBuddyList * pidgin_blist_get_default_gtk_blist(void)
Returns the default gtk buddy list.
void pidgin_blist_update_sort_methods(void)
Updates the Sorting menu on the GTK+ buddy list window.
void pidgin_blist_toggle_visibility(void)
Intelligently toggles the visibility of the buddy list.
void pidgin_blist_update_account_error_state(PurpleAccount *account, const char *message)
Was used by the connection API to tell the blist if an account has a connection error or no longer ha...
void pidgin_blist_set_headline(const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data, GDestroyNotify destroy)
Sets a headline notification.
void pidgin_blist_uninit(void)
Uninitializes the GTK+ blist system.
void pidgin_blist_joinchat_show(void)
Shows the join chat dialog.
void pidgin_blist_update_accounts_menu(void)
Updates the accounts menu on the GTK+ buddy list window.
gboolean pidgin_blist_node_is_contact_expanded(PurpleBlistNode *node)
Returns a boolean indicating if node is part of an expanded contact.
void pidgin_blist_setup_sort_methods(void)
Sets up the programs default sort methods.
UI definitions and includes.
Like, everything you need to know about the gtk buddy list.
GDestroyNotify headline_destroy
Callback to use for destroying the headline-data.
GtkWidget * headline_image
Image for headline notifications.
GdkRectangle contact_rect
This is the bounding rectangle of the contact node and its children.
GtkWidget * main_vbox
This vbox contains the menu and notebook.
GtkWidget * treeview
It's a treeview... d'uh.
GtkWidget * tipwindow
The window used by the tooltip.
GtkWidget * headline_label
Label for headline notifications.
GdkRectangle tip_rect
This is the bounding rectangle of the cell we're currently hovering over.
GList * tooltipdata
The data for each "chunk" of the tooltip.
GHashTable * connection_errors
Caches connection error messages; keys are PurpleAccount and values are non-NULL const char *s contai...
GtkWidget * menutrayicon
The menu tray icon.
GtkTreeStore * treemodel
This is the treemodel.
GtkWidget * vbox
This is the vbox that everything important gets packed into.
guint drag_timeout
The timeout for expanding contacts on drags.
guint timeout
The timeout for the tooltip.
GtkTreeViewColumn * text_column
Column.
GdkPixbuf * headline_close
GtkWidget * error_buttons
Box containing the connection error buttons.
gboolean changing_style
True when changing GTK+ theme style.
PurpleBlistNode * mouseover_contact
This is the contact currently mouse-over expanded.
GdkCursor * arrow_cursor
Arrow cursor.
GtkWidget * headline_hbox
Hbox for headline notification.
GdkPixbuf * empty_avatar
A 32x32 transparent pixbuf.
GtkWidget * scrollbook
Scrollbook for alerts.
GCallback headline_callback
Callback for headline notifications.
GtkWidget * notebook
The notebook that switches between the real buddy list and the helpful instructions page.
gpointer headline_data
User data for headline notifications.
PurpleBlistNode * selected_node
The currently selected node.
GdkCursor * hand_cursor
Hand cursor.
gpointer priv
Pointer to opaque private data.
GtkWidget * menutray
The menu tray widget.
guint refresh_timer
The timer for refreshing every 30 seconds.
GtkWidget * statusbox
The status selector dropdown.
Structure representing an account.
Buddy list UI operations.