#include "pidgin.h"
#include "blist.h"
Include dependency graph for gtkblist.h:
Go to the source code of this file.
Data Structures | |
struct | _PidginBuddyList |
Like, everything you need to know about the gtk buddy list. More... | |
struct | pidgin_blist_sort_method |
Defines | |
#define | PIDGIN_BLIST(list) ((PidginBuddyList *)(list)->ui_data) |
#define | PIDGIN_IS_PIDGIN_BLIST(list) ((list)->ui_ops == pidgin_blist_get_ui_ops()) |
Typedefs | |
typedef void(*) | pidgin_blist_sort_function (PurpleBlistNode *new, PurpleBuddyList *blist, GtkTreeIter group, GtkTreeIter *cur, GtkTreeIter *iter) |
typedef pidgin_blist_sort_method | PidginBlistSortMethod |
typedef _PidginBuddyList | PidginBuddyList |
Enumerations | |
enum | { STATUS_ICON_COLUMN, STATUS_ICON_VISIBLE_COLUMN, NAME_COLUMN, IDLE_COLUMN, IDLE_VISIBLE_COLUMN, BUDDY_ICON_COLUMN, BUDDY_ICON_VISIBLE_COLUMN, NODE_COLUMN, BGCOLOR_COLUMN, GROUP_EXPANDER_COLUMN, GROUP_EXPANDER_VISIBLE_COLUMN, CONTACT_EXPANDER_COLUMN, CONTACT_EXPANDER_VISIBLE_COLUMN, EMBLEM_COLUMN, EMBLEM_VISIBLE_COLUMN, BLIST_COLUMNS } |
enum | PidginStatusIconSize { PIDGIN_STATUS_ICON_LARGE, PIDGIN_STATUS_ICON_SMALL } |
Functions | |
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. | |
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. | |
void | pidgin_blist_add_alert (GtkWidget *widget) |
Adds a mini-alert to the blist scrollbook. | |
PidginBuddyList * | pidgin_blist_get_default_gtk_blist (void) |
Returns the default gtk buddy list. | |
GdkPixbuf * | pidgin_blist_get_emblem (PurpleBlistNode *node) |
Returns the blist emblem. | |
void * | pidgin_blist_get_handle (void) |
Get the handle for the GTK+ blist system. | |
GList * | pidgin_blist_get_sort_methods (void) |
Gets the current list of sort methods. | |
GdkPixbuf * | pidgin_blist_get_status_icon (PurpleBlistNode *node, PidginStatusIconSize size) |
Useful for the buddy ticker. | |
PurpleBlistUiOps * | pidgin_blist_get_ui_ops (void) |
Returns the UI operations structure for the buddy list. | |
void | pidgin_blist_init (void) |
Initializes the GTK+ blist system. | |
gboolean | pidgin_blist_joinchat_is_showable (void) |
Determines if showing the join chat dialog is a valid action. | |
void | pidgin_blist_joinchat_show (void) |
Shows the join chat dialog. | |
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. | |
gboolean | pidgin_blist_node_is_contact_expanded (PurpleBlistNode *node) |
Returns a boolean indicating if node is part of an expanded contact. | |
void | pidgin_blist_refresh (PurpleBuddyList *list) |
Refreshes all the nodes of the buddy list. | |
void | pidgin_blist_set_headline (const char *text, GdkPixbuf *pixbuf, GCallback callback, gpointer user_data, GDestroyNotify destroy) |
Sets a headline notification. | |
void | pidgin_blist_setup_sort_methods (void) |
Sets up the programs default sort methods. | |
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_sort_method_set (const char *id) |
Sets a buddy list sorting method. | |
void | pidgin_blist_sort_method_unreg (const char *id) |
Unregisters a buddy list sorting method. | |
void | pidgin_blist_toggle_visibility (void) |
Intelligently toggles the visibility of the buddy list. | |
void | pidgin_blist_uninit (void) |
Uninitializes the GTK+ blist system. | |
void | pidgin_blist_update_account_error_state (PurpleAccount *account, const char *message) |
Used by the connection API to tell the blist if an account has a connection error or no longer has a connection error. | |
void | pidgin_blist_update_accounts_menu (void) |
Updates the accounts menu on the GTK+ buddy list window. | |
void | pidgin_blist_update_columns (void) |
void | pidgin_blist_update_plugin_actions (void) |
Updates the plugin actions menu on the GTK+ buddy list window. | |
void | pidgin_blist_update_refresh_timeout (void) |
void | pidgin_blist_update_sort_methods (void) |
Updates the Sorting menu on the GTK+ buddy list window. | |
void | pidgin_blist_visibility_manager_add (void) |
Increases the reference count of visibility managers. | |
void | pidgin_blist_visibility_manager_remove (void) |
Decreases the reference count of visibility managers. |
pidgin
Pidgin is the legal property of its developers, whose names are too numerous to list here. Please refer to the COPYRIGHT file distributed with this source distribution.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Definition in file gtkblist.h.
anonymous enum |
Definition at line 30 of file gtkblist.h.
enum PidginStatusIconSize |
Definition at line 50 of file gtkblist.h.
void pidgin_blist_add_alert | ( | GtkWidget * | widget | ) |
Adds a mini-alert to the blist scrollbook.
widget | The widget to add |
PidginBuddyList* pidgin_blist_get_default_gtk_blist | ( | void | ) |
Returns the default gtk buddy list.
There's normally only one buddy list window, but that isn't a necessity. This function returns the PidginBuddyList we're most likely wanting to work with. This is slightly cleaner than an externed global.
GdkPixbuf* pidgin_blist_get_emblem | ( | PurpleBlistNode * | node | ) |
Returns the blist emblem.
node | The node to return an emblem for |
void* pidgin_blist_get_handle | ( | void | ) |
Get the handle for the GTK+ blist system.
GList* pidgin_blist_get_sort_methods | ( | void | ) |
Gets the current list of sort methods.
PurpleBlistUiOps* pidgin_blist_get_ui_ops | ( | void | ) |
Returns the UI operations structure for the buddy list.
gboolean pidgin_blist_joinchat_is_showable | ( | void | ) |
Determines if showing the join chat dialog is a valid action.
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.
menu | The menu to populate | |
buddy | The buddy whose menu to get | |
sub | TRUE if this is a sub-menu, FALSE otherwise |
gboolean pidgin_blist_node_is_contact_expanded | ( | PurpleBlistNode * | node | ) |
Returns a boolean indicating if node is part of an expanded contact.
This only makes sense for contact and buddy nodes. FALSE
is returned for other types of nodes.
node | The node in question. |
void pidgin_blist_refresh | ( | PurpleBuddyList * | list | ) |
Refreshes all the nodes of the buddy list.
This should only be called when something changes to affect most of the nodes (such as a ui preference changing)
list | This is the core list that gets updated from |
void pidgin_blist_set_headline | ( | const char * | text, | |
GdkPixbuf * | pixbuf, | |||
GCallback | callback, | |||
gpointer | user_data, | |||
GDestroyNotify | destroy | |||
) |
Sets a headline notification.
This is currently used for mail notification, but could theoretically be used for anything. Only the most recent headline will be shown.
text | Pango Markup for the label text | |
pixbuf | The GdkPixbuf for the icon | |
callback | The callback to call when headline is clicked | |
user_data | The userdata to include in the callback | |
destroy | The callback to call when headline is closed or replaced by another headline. |
void pidgin_blist_sort_method_reg | ( | const char * | id, | |
const char * | name, | |||
pidgin_blist_sort_function | func | |||
) |
Registers a buddy list sorting method.
id | The unique ID of the sorting method | |
name | The method's name. | |
func | A pointer to the function. |
void pidgin_blist_sort_method_set | ( | const char * | id | ) |
Sets a buddy list sorting method.
id | The method's id. |
void pidgin_blist_sort_method_unreg | ( | const char * | id | ) |
Unregisters a buddy list sorting method.
id | The method's id |
void pidgin_blist_toggle_visibility | ( | void | ) |
Intelligently toggles the visibility of the buddy list.
If the buddy list is obscured, it is brought to the front. If it is not obscured, it is hidden. If it is hidden it is shown.
void pidgin_blist_update_account_error_state | ( | PurpleAccount * | account, | |
const char * | message | |||
) |
Used by the connection API to tell the blist if an account has a connection error or no longer has a connection error.
account | The account that either has a connection error or no longer has a connection error. | |
message | The connection error message, or NULL if this account is no longer in an error state. |
void pidgin_blist_visibility_manager_add | ( | void | ) |
Increases the reference count of visibility managers.
Callers should call the complementary remove function when no longer managing visibility.
A visibility manager is something that provides some method for showing the buddy list after it is hidden (e.g. docklet plugin).
void pidgin_blist_visibility_manager_remove | ( | void | ) |
Decreases the reference count of visibility managers.
If the count drops below zero, the buddy list is shown.