pidgin  2.13.0
About: Pidgin is a chat program (multi-protocol instant messaging client) which lets you log in to accounts on multiple chat networks simultaneously (old name "gaim").
  Fossies Dox: pidgin-2.13.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

gntblist.h File Reference
#include "blist.h"
#include "gnttree.h"
Include dependency graph for gntblist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FinchBlistManager
 

Functions

PurpleBlistUiOpsfinch_blist_get_ui_ops (void)
 
void finch_blist_init (void)
 
void finch_blist_uninit (void)
 
void finch_blist_show (void)
 
gboolean finch_blist_get_position (int *x, int *y)
 
void finch_blist_set_position (int x, int y)
 
gboolean finch_blist_get_size (int *width, int *height)
 
void finch_blist_set_size (int width, int height)
 
gpointer finch_retrieve_user_info (PurpleConnection *conn, const char *name)
 
GntTreefinch_blist_get_tree (void)
 
void finch_blist_install_manager (const FinchBlistManager *manager)
 
void finch_blist_uninstall_manager (const FinchBlistManager *manager)
 
FinchBlistManagerfinch_blist_manager_find (const char *id)
 
void finch_blist_manager_add_node (PurpleBlistNode *node)
 

Detailed Description

GNT BuddyList API

Definition in file gntblist.h.

Function Documentation

◆ finch_blist_get_position()

gboolean finch_blist_get_position ( int *  x,
int *  y 
)

Get the position of the buddy list.

Parameters
xThe x-coordinate is set here if not @ NULL.
yThe y-coordinate is set here if not NULL.
Returns
Returns TRUE if the values were set, FALSE otherwise.

Definition at line 3212 of file gntblist.c.

References FALSE, ggblist, gnt_widget_get_position(), TRUE, and FinchBlist::window.

◆ finch_blist_get_size()

gboolean finch_blist_get_size ( int *  width,
int *  height 
)

Get the size of the buddy list.

Parameters
widthThe width is set here if not @ NULL.
heightThe height is set here if not NULL.
Returns
Returns TRUE if the values were set, FALSE otherwise.

Definition at line 3225 of file gntblist.c.

References FALSE, ggblist, gnt_widget_get_size(), TRUE, and FinchBlist::window.

◆ finch_blist_get_tree()

GntTree* finch_blist_get_tree ( void  )

Get the tree list of the buddy list.

Returns
The GntTree widget.
Since
2.4.0

Definition at line 3272 of file gntblist.c.

References ggblist, GNT_TREE, NULL, and FinchBlist::tree.

Referenced by meebo_init(), nested_group_find_parent(), no_group_init(), no_group_uninit(), and on_offline_init().

◆ finch_blist_get_ui_ops()

PurpleBlistUiOps* finch_blist_get_ui_ops ( void  )

Get the ui-functions.

Returns
The PurpleBlistUiOps structure populated with the appropriate functions.

Definition at line 1034 of file gntblist.c.

References blist_ui_ops.

Referenced by gnt_ui_init().

◆ finch_blist_init()

◆ finch_blist_install_manager()

void finch_blist_install_manager ( const FinchBlistManager manager)

Add an alternate buddy list manager.

Parameters
managerThe alternate buddylist manager.
Since
2.4.0

Definition at line 3238 of file gntblist.c.

References managers, PREF_ROOT, purple_prefs_get_string(), purple_prefs_trigger_callback(), purple_strequal(), and reconstruct_grouping_menu().

Referenced by finch_blist_init(), and plugin_load().

◆ finch_blist_manager_add_node()

void finch_blist_manager_add_node ( PurpleBlistNode node)

Request the active buddy list manager to add a node.

Parameters
nodeThe node to add
Since
2.4.0

Definition at line 486 of file gntblist.c.

References add_node(), ggblist, and dbus-buddyicons-example::node.

Referenced by nested_group_find_parent(), no_group_find_parent(), and on_offline_find_parent().

◆ finch_blist_manager_find()

FinchBlistManager* finch_blist_manager_find ( const char *  id)

Find a buddy list manager.

Parameters
idThe identifier for the desired buddy list manager.
Returns
The manager with the requested identifier, if available. NULL otherwise.
Since
2.4.0

Definition at line 3258 of file gntblist.c.

References FinchBlistManager::id, managers, NULL, and purple_strequal().

Referenced by new_list(), plugin_load(), and redraw_blist().

◆ finch_blist_set_position()

void finch_blist_set_position ( int  x,
int  y 
)

Set the position of the buddy list.

Parameters
xThe x-coordinate of the buddy list.
yThe y-coordinate of the buddy list.

Definition at line 3220 of file gntblist.c.

References ggblist, gnt_widget_set_position(), and FinchBlist::window.

◆ finch_blist_set_size()

void finch_blist_set_size ( int  width,
int  height 
)

Set the size of the buddy list.

Parameters
widthThe width of the buddy list.
heightThe height of the buddy list.

Definition at line 3233 of file gntblist.c.

References ggblist, gnt_widget_set_size(), and FinchBlist::window.

◆ finch_blist_show()

void finch_blist_show ( void  )

Show the buddy list.

Definition at line 3101 of file gntblist.c.

References blist_show(), and purple_get_blist().

Referenced by finch_conversation_init(), and gnt_ui_init().

◆ finch_blist_uninit()

void finch_blist_uninit ( void  )

Perform necessary uninitializations.

Definition at line 3208 of file gntblist.c.

◆ finch_blist_uninstall_manager()

void finch_blist_uninstall_manager ( const FinchBlistManager manager)

Remove an alternate buddy list manager.

Parameters
managerThe buddy list manager to remove.
Since
2.4.0

Definition at line 3248 of file gntblist.c.

References FinchBlistManager::id, managers, PREF_ROOT, purple_prefs_get_string(), purple_prefs_trigger_callback(), purple_strequal(), and reconstruct_grouping_menu().

Referenced by plugin_unload().

◆ finch_retrieve_user_info()

gpointer finch_retrieve_user_info ( PurpleConnection conn,
const char *  name 
)

Get information about a user. Show immediate feedback.

Parameters
connThe connection to get information fro
nameThe user to get information about.
Returns
Returns the ui-handle for the userinfo notification.
Since
2.1.0

Definition at line 1267 of file gntblist.c.

References _(), info, name, NULL, purple_notify_user_info_add_pair(), purple_notify_user_info_destroy(), purple_notify_user_info_new(), purple_notify_userinfo(), and serv_get_info().

Referenced by finch_blist_get_buddy_info_cb(), finch_request_authorize(), and get_info_cb().