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.c File Reference
#include <internal.h>
#include "finch.h"
#include <account.h>
#include <blist.h>
#include <log.h>
#include <notify.h>
#include <privacy.h>
#include <request.h>
#include <savedstatuses.h>
#include <server.h>
#include <signal.h>
#include <status.h>
#include <util.h>
#include "debug.h"
#include "gntbox.h"
#include "gntcolors.h"
#include "gntcombobox.h"
#include "gntentry.h"
#include "gntft.h"
#include "gntlabel.h"
#include "gntline.h"
#include "gntlog.h"
#include "gntmenu.h"
#include "gntmenuitem.h"
#include "gntmenuitemcheck.h"
#include "gntpounce.h"
#include "gntstyle.h"
#include "gnttree.h"
#include "gntutils.h"
#include "gntwindow.h"
#include "gntblist.h"
#include "gntconv.h"
#include "gntstatus.h"
#include <string.h>
Include dependency graph for gntblist.c:

Go to the source code of this file.

Data Structures

struct  FinchBlist
 
struct  FinchBlistNode
 
struct  StatusBoxItem
 

Macros

#define PREF_ROOT   "/finch/blist"
 
#define TYPING_TIMEOUT_S   4
 
#define SHOW_EMPTY_GROUP_TIMEOUT   60
 

Enumerations

enum  StatusType { STATUS_PRIMITIVE = 0, STATUS_SAVED_POPULAR, STATUS_SAVED_ALL, STATUS_SAVED_NEW }
 

Functions

static void add_buddy (PurpleBuddy *buddy, FinchBlist *ggblist)
 
static void add_contact (PurpleContact *contact, FinchBlist *ggblist)
 
static void add_group (PurpleGroup *group, FinchBlist *ggblist)
 
static void add_chat (PurpleChat *chat, FinchBlist *ggblist)
 
static void add_node (PurpleBlistNode *node, FinchBlist *ggblist)
 
static void node_update (PurpleBuddyList *list, PurpleBlistNode *node)
 
static void draw_tooltip (FinchBlist *ggblist)
 
static void tooltip_for_buddy (PurpleBuddy *buddy, GString *str, gboolean full)
 
static gboolean remove_typing_cb (gpointer null)
 
static void remove_peripherals (FinchBlist *ggblist)
 
static const char * get_display_name (PurpleBlistNode *node)
 
static void savedstatus_changed (PurpleSavedStatus *now, PurpleSavedStatus *old)
 
static void blist_show (PurpleBuddyList *list)
 
static void update_node_display (PurpleBlistNode *buddy, FinchBlist *ggblist)
 
static void update_buddy_display (PurpleBuddy *buddy, FinchBlist *ggblist)
 
static gboolean account_autojoin_cb (PurpleConnection *pc, gpointer null)
 
static void finch_request_add_buddy (PurpleAccount *account, const char *username, const char *grp, const char *alias)
 
static void menu_group_set_cb (GntMenuItem *item, gpointer null)
 
static int blist_node_compare_position (PurpleBlistNode *n1, PurpleBlistNode *n2)
 
static int blist_node_compare_text (PurpleBlistNode *n1, PurpleBlistNode *n2)
 
static int blist_node_compare_status (PurpleBlistNode *n1, PurpleBlistNode *n2)
 
static int blist_node_compare_log (PurpleBlistNode *n1, PurpleBlistNode *n2)
 
static gboolean default_can_add_node (PurpleBlistNode *node)
 
static gpointer default_find_parent (PurpleBlistNode *node)
 
static gboolean default_create_tooltip (gpointer selected_row, GString **body, char **tool_title)
 
static FinchBlistNodecreate_finch_blist_node (PurpleBlistNode *node, gpointer row)
 
static void reset_blist_node_ui_data (PurpleBlistNode *node)
 
static int get_display_color (PurpleBlistNode *node)
 
static GntTextFormatFlags get_blist_node_flag (PurpleBlistNode *node)
 
static void blist_update_row_flags (PurpleBlistNode *node)
 
static void new_node (PurpleBlistNode *node)
 
void finch_blist_manager_add_node (PurpleBlistNode *node)
 
static void remove_tooltip (FinchBlist *ggblist)
 
static void node_remove (PurpleBuddyList *list, PurpleBlistNode *node)
 
static void new_list (PurpleBuddyList *list)
 
static void destroy_list (PurpleBuddyList *list)
 
static gboolean remove_new_empty_group (gpointer data)
 
static void add_buddy_cb (void *data, PurpleRequestFields *allfields)
 
static void join_chat (PurpleChat *chat)
 
static void add_chat_cb (void *data, PurpleRequestFields *allfields)
 
static void finch_request_add_chat (PurpleAccount *account, PurpleGroup *grp, const char *alias, const char *name)
 
static void add_group_cb (gpointer null, const char *group)
 
static void finch_request_add_group (void)
 
static gpointer finch_blist_get_handle (void)
 
PurpleBlistUiOpsfinch_blist_get_ui_ops ()
 
static void selection_activate (GntWidget *widget, FinchBlist *ggblist)
 
static void context_menu_callback (GntMenuItem *item, gpointer data)
 
static void gnt_append_menu_action (GntMenu *menu, PurpleMenuAction *action, gpointer parent)
 
static void append_proto_menu (GntMenu *menu, PurpleConnection *gc, PurpleBlistNode *node)
 
static void add_custom_action (GntMenu *menu, const char *label, PurpleCallback callback, gpointer data)
 
static void chat_components_edit_ok (PurpleChat *chat, PurpleRequestFields *allfields)
 
static void chat_components_edit (PurpleBlistNode *selected, PurpleChat *chat)
 
static void autojoin_toggled (GntMenuItem *item, gpointer data)
 
static void create_chat_menu (GntMenu *menu, PurpleChat *chat)
 
static void finch_add_buddy (PurpleBlistNode *selected, PurpleGroup *grp)
 
static void finch_add_group (PurpleBlistNode *selected, PurpleGroup *grp)
 
static void finch_add_chat (PurpleBlistNode *selected, PurpleGroup *grp)
 
static void create_group_menu (GntMenu *menu, PurpleGroup *group)
 
gpointer finch_retrieve_user_info (PurpleConnection *conn, const char *name)
 
static void finch_blist_get_buddy_info_cb (PurpleBlistNode *selected, PurpleBuddy *buddy)
 
static void finch_blist_menu_send_file_cb (PurpleBlistNode *selected, PurpleBuddy *buddy)
 
static void finch_blist_pounce_node_cb (PurpleBlistNode *selected, PurpleBlistNode *node)
 
static void toggle_block_buddy (GntMenuItem *item, gpointer buddy)
 
static void toggle_show_offline (GntMenuItem *item, gpointer buddy)
 
static void create_buddy_menu (GntMenu *menu, PurpleBuddy *buddy)
 
static void append_extended_menu (GntMenu *menu, PurpleBlistNode *node)
 
static void remove_contact (PurpleContact *contact)
 
static void rename_blist_node (PurpleBlistNode *node, const char *newname)
 
static void finch_blist_rename_node_cb (PurpleBlistNode *selected, PurpleBlistNode *node)
 
static void showlog_cb (PurpleBlistNode *sel, PurpleBlistNode *node)
 
static void remove_group (PurpleGroup *group)
 
static void finch_blist_remove_node (PurpleBlistNode *node)
 
static void finch_blist_remove_node_cb (PurpleBlistNode *selected, PurpleBlistNode *node)
 
static void finch_blist_toggle_tag_buddy (PurpleBlistNode *node)
 
static void finch_blist_place_tagged (PurpleBlistNode *target)
 
static void context_menu_destroyed (GntWidget *widget, FinchBlist *ggblist)
 
static void draw_context_menu (FinchBlist *ggblist)
 
static GString * make_sure_text_fits (GString *string)
 
static gboolean draw_tooltip_real (FinchBlist *ggblist)
 
static void selection_changed (GntWidget *widget, gpointer old, gpointer current, FinchBlist *ggblist)
 
static gboolean context_menu (GntWidget *widget, FinchBlist *ggblist)
 
static gboolean key_pressed (GntWidget *widget, const char *text, FinchBlist *ggblist)
 
static void buddy_status_changed (PurpleBuddy *buddy, PurpleStatus *old, PurpleStatus *now, FinchBlist *ggblist)
 
static void buddy_idle_changed (PurpleBuddy *buddy, int old, int new, FinchBlist *ggblist)
 
static void size_changed_cb (GntWidget *w, int wi, int h)
 
static void save_position_cb (GntWidget *w, int x, int y)
 
static void reset_blist_window (GntWidget *window, gpointer null)
 
static void populate_buddylist (void)
 
static void destroy_status_list (GList *list)
 
static void populate_status_dropdown (void)
 
static void redraw_blist (const char *name, PurplePrefType type, gconstpointer val, gpointer data)
 
void finch_blist_init ()
 
static void status_selection_changed (GntComboBox *box, StatusBoxItem *old, StatusBoxItem *now, gpointer null)
 
static gboolean status_text_changed (GntEntry *entry, const char *text, gpointer null)
 
static int get_contact_log_size (PurpleBlistNode *c)
 
static void plugin_action (GntMenuItem *item, gpointer data)
 
static void build_plugin_actions (GntMenuItem *item, PurplePlugin *plugin, gpointer context)
 
static gboolean buddy_recent_signed_on_off (gpointer data)
 
static gboolean buddy_signed_on_off_cb (gpointer data)
 
static void buddy_signed_on_off (PurpleBuddy *buddy, gpointer null)
 
static void reconstruct_plugins_menu (void)
 
static void reconstruct_accounts_menu (void)
 
static void reconstruct_grouping_menu (void)
 
static gboolean auto_join_chats (gpointer data)
 
static void toggle_pref_cb (GntMenuItem *item, gpointer n)
 
static void sort_blist_change_cb (GntMenuItem *item, gpointer n)
 
static void block_select_cb (gpointer data, PurpleRequestFields *fields)
 
static void block_select (GntMenuItem *item, gpointer n)
 
static void send_im_select_cb (gpointer data, PurpleRequestFields *fields)
 
static void send_im_select (GntMenuItem *item, gpointer n)
 
static void join_chat_select_cb (gpointer data, PurpleRequestFields *fields)
 
static void join_chat_select (GntMenuItem *item, gpointer n)
 
static void view_log_select_cb (gpointer data, PurpleRequestFields *fields)
 
static void view_log_cb (GntMenuItem *item, gpointer n)
 
static void view_all_logs_cb (GntMenuItem *item, gpointer n)
 
static void menu_add_buddy_cb (GntMenuItem *item, gpointer null)
 
static void menu_add_chat_cb (GntMenuItem *item, gpointer null)
 
static void menu_add_group_cb (GntMenuItem *item, gpointer null)
 
static void create_menu (void)
 
void finch_blist_show ()
 
static void group_collapsed (GntWidget *widget, PurpleBlistNode *node, gboolean collapsed, gpointer null)
 
void finch_blist_uninit ()
 
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)
 
void finch_blist_install_manager (const FinchBlistManager *manager)
 
void finch_blist_uninstall_manager (const FinchBlistManager *manager)
 
FinchBlistManagerfinch_blist_manager_find (const char *id)
 
GntTreefinch_blist_get_tree (void)
 

Variables

static FinchBlistggblist
 
static int color_available
 
static int color_away
 
static int color_offline
 
static int color_idle
 
static FinchBlistManager default_manager
 
static GList * managers
 
static PurpleBlistUiOps blist_ui_ops
 

Detailed Description

GNT BuddyList API

Definition in file gntblist.c.

Macro Definition Documentation

◆ PREF_ROOT

#define PREF_ROOT   "/finch/blist"

Definition at line 64 of file gntblist.c.

◆ SHOW_EMPTY_GROUP_TIMEOUT

#define SHOW_EMPTY_GROUP_TIMEOUT   60

Definition at line 67 of file gntblist.c.

◆ TYPING_TIMEOUT_S

#define TYPING_TIMEOUT_S   4

Definition at line 65 of file gntblist.c.

Enumeration Type Documentation

◆ StatusType

enum StatusType
Enumerator
STATUS_PRIMITIVE 
STATUS_SAVED_POPULAR 
STATUS_SAVED_ALL 
STATUS_SAVED_NEW 

Definition at line 108 of file gntblist.c.

Function Documentation

◆ account_autojoin_cb()

static gboolean account_autojoin_cb ( PurpleConnection pc,
gpointer  null 
)
static

Definition at line 2696 of file gntblist.c.

References auto_join_chats(), and TRUE.

Referenced by finch_blist_init().

◆ add_buddy()

◆ add_buddy_cb()

◆ add_chat()

◆ add_chat_cb()

◆ add_contact()

◆ add_custom_action()

static void add_custom_action ( GntMenu menu,
const char *  label,
PurpleCallback  callback,
gpointer  data 
)
static

◆ add_group()

◆ add_group_cb()

◆ add_node()

◆ append_extended_menu()

static void append_extended_menu ( GntMenu menu,
PurpleBlistNode node 
)
static

◆ append_proto_menu()

◆ auto_join_chats()

◆ autojoin_toggled()

static void autojoin_toggled ( GntMenuItem item,
gpointer  data 
)
static

◆ blist_node_compare_log()

◆ blist_node_compare_position()

static int blist_node_compare_position ( PurpleBlistNode n1,
PurpleBlistNode n2 
)
static

◆ blist_node_compare_status()

◆ blist_node_compare_text()

◆ blist_show()

◆ blist_update_row_flags()

◆ block_select()

◆ block_select_cb()

static void block_select_cb ( gpointer  data,
PurpleRequestFields fields 
)
static

◆ buddy_idle_changed()

static void buddy_idle_changed ( PurpleBuddy buddy,
int  old,
int  new,
FinchBlist ggblist 
)
static

Definition at line 1996 of file gntblist.c.

References ggblist, and update_buddy_display().

Referenced by blist_show().

◆ buddy_recent_signed_on_off()

◆ buddy_signed_on_off()

static void buddy_signed_on_off ( PurpleBuddy buddy,
gpointer  null 
)
static

Definition at line 2580 of file gntblist.c.

References buddy_signed_on_off_cb().

Referenced by blist_show().

◆ buddy_signed_on_off_cb()

◆ buddy_status_changed()

static void buddy_status_changed ( PurpleBuddy buddy,
PurpleStatus old,
PurpleStatus now,
FinchBlist ggblist 
)
static

Definition at line 1990 of file gntblist.c.

References ggblist, and update_buddy_display().

Referenced by blist_show().

◆ build_plugin_actions()

◆ chat_components_edit()

◆ chat_components_edit_ok()

◆ context_menu()

static gboolean context_menu ( GntWidget widget,
FinchBlist ggblist 
)
static

Definition at line 1931 of file gntblist.c.

References draw_context_menu(), ggblist, and TRUE.

Referenced by blist_show(), and gtk_imhtml_class_register_protocol().

◆ context_menu_callback()

static void context_menu_callback ( GntMenuItem item,
gpointer  data 
)
static

◆ context_menu_destroyed()

static void context_menu_destroyed ( GntWidget widget,
FinchBlist ggblist 
)
static

Definition at line 1677 of file gntblist.c.

References FinchBlist::context, ggblist, and NULL.

Referenced by draw_context_menu().

◆ create_buddy_menu()

◆ create_chat_menu()

◆ create_finch_blist_node()

static FinchBlistNode* create_finch_blist_node ( PurpleBlistNode node,
gpointer  row 
)
static

◆ create_group_menu()

static void create_group_menu ( GntMenu menu,
PurpleGroup group 
)
static

◆ create_menu()

◆ default_can_add_node()

◆ default_create_tooltip()

◆ default_find_parent()

◆ destroy_list()

static void destroy_list ( PurpleBuddyList list)
static

Definition at line 592 of file gntblist.c.

References ggblist, gnt_widget_destroy(), NULL, and FinchBlist::window.

◆ destroy_status_list()

static void destroy_status_list ( GList *  list)
static

Definition at line 2084 of file gntblist.c.

References NULL.

Referenced by populate_status_dropdown().

◆ draw_context_menu()

◆ draw_tooltip()

static void draw_tooltip ( FinchBlist ggblist)
static

◆ draw_tooltip_real()

◆ finch_add_buddy()

static void finch_add_buddy ( PurpleBlistNode selected,
PurpleGroup grp 
)
static

Definition at line 1239 of file gntblist.c.

References NULL, purple_blist_request_add_buddy(), and purple_group_get_name().

Referenced by create_group_menu().

◆ finch_add_chat()

static void finch_add_chat ( PurpleBlistNode selected,
PurpleGroup grp 
)
static

Definition at line 1251 of file gntblist.c.

References NULL, and purple_blist_request_add_chat().

Referenced by create_group_menu().

◆ finch_add_group()

static void finch_add_group ( PurpleBlistNode selected,
PurpleGroup grp 
)
static

Definition at line 1245 of file gntblist.c.

References purple_blist_request_add_group().

Referenced by create_group_menu().

◆ finch_blist_get_buddy_info_cb()

static void finch_blist_get_buddy_info_cb ( PurpleBlistNode selected,
PurpleBuddy buddy 
)
static

◆ finch_blist_get_handle()

static gpointer finch_blist_get_handle ( void  )
static

Definition at line 878 of file gntblist.c.

References handle.

Referenced by blist_show(), finch_blist_init(), and reset_blist_window().

◆ 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_menu_send_file_cb()

static void finch_blist_menu_send_file_cb ( PurpleBlistNode selected,
PurpleBuddy buddy 
)
static

◆ finch_blist_place_tagged()

◆ finch_blist_pounce_node_cb()

◆ finch_blist_remove_node()

◆ finch_blist_remove_node_cb()

◆ finch_blist_rename_node_cb()

◆ 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_toggle_tag_buddy()

◆ 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_request_add_buddy()

◆ finch_request_add_chat()

◆ finch_request_add_group()

static void finch_request_add_group ( void  )
static

Definition at line 850 of file gntblist.c.

References _(), add_group_cb(), FALSE, NULL, and purple_request_input().

◆ 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().

◆ get_blist_node_flag()

◆ get_contact_log_size()

◆ get_display_color()

◆ get_display_name()

◆ gnt_append_menu_action()

◆ group_collapsed()

static void group_collapsed ( GntWidget widget,
PurpleBlistNode node,
gboolean  collapsed,
gpointer  null 
)
static

◆ join_chat()

◆ join_chat_select()

◆ join_chat_select_cb()

◆ key_pressed()

◆ make_sure_text_fits()

static GString* make_sure_text_fits ( GString *  string)
static

Definition at line 1831 of file gntblist.c.

References gnt_util_onscreen_fit_string(), and str.

Referenced by draw_tooltip_real().

◆ menu_add_buddy_cb()

static void menu_add_buddy_cb ( GntMenuItem item,
gpointer  null 
)
static

Definition at line 2961 of file gntblist.c.

References NULL, and purple_blist_request_add_buddy().

Referenced by create_menu().

◆ menu_add_chat_cb()

static void menu_add_chat_cb ( GntMenuItem item,
gpointer  null 
)
static

Definition at line 2967 of file gntblist.c.

References NULL, and purple_blist_request_add_chat().

Referenced by create_menu().

◆ menu_add_group_cb()

static void menu_add_group_cb ( GntMenuItem item,
gpointer  null 
)
static

Definition at line 2973 of file gntblist.c.

References purple_blist_request_add_group().

Referenced by create_menu().

◆ menu_group_set_cb()

static void menu_group_set_cb ( GntMenuItem item,
gpointer  null 
)
static

Definition at line 2979 of file gntblist.c.

References PREF_ROOT, and purple_prefs_set_string().

Referenced by reconstruct_grouping_menu().

◆ new_list()

◆ new_node()

static void new_node ( PurpleBlistNode node)
static

Definition at line 461 of file gntblist.c.

◆ node_remove()

◆ node_update()

◆ plugin_action()

static void plugin_action ( GntMenuItem item,
gpointer  data 
)
static

Definition at line 2511 of file gntblist.c.

References _PurplePluginAction::callback, and data.

Referenced by build_plugin_actions().

◆ populate_buddylist()

◆ populate_status_dropdown()

◆ reconstruct_accounts_menu()

◆ reconstruct_grouping_menu()

◆ reconstruct_plugins_menu()

◆ redraw_blist()

◆ remove_contact()

◆ remove_group()

◆ remove_new_empty_group()

static gboolean remove_new_empty_group ( gpointer  data)
static

◆ remove_peripherals()

static void remove_peripherals ( FinchBlist ggblist)
static

◆ remove_tooltip()

static void remove_tooltip ( FinchBlist ggblist)
static

◆ remove_typing_cb()

◆ rename_blist_node()

◆ reset_blist_node_ui_data()

static void reset_blist_node_ui_data ( PurpleBlistNode node)
static

◆ reset_blist_window()

◆ save_position_cb()

static void save_position_cb ( GntWidget w,
int  x,
int  y 
)
static

Definition at line 2020 of file gntblist.c.

References PREF_ROOT, and purple_prefs_set_int().

Referenced by blist_show().

◆ savedstatus_changed()

◆ selection_activate()

◆ selection_changed()

static void selection_changed ( GntWidget widget,
gpointer  old,
gpointer  current,
FinchBlist ggblist 
)
static

Definition at line 1924 of file gntblist.c.

References draw_tooltip(), ggblist, and remove_peripherals().

Referenced by blist_show(), and gnt_tree_class_init().

◆ send_im_select()

◆ send_im_select_cb()

static void send_im_select_cb ( gpointer  data,
PurpleRequestFields fields 
)
static

◆ showlog_cb()

◆ size_changed_cb()

static void size_changed_cb ( GntWidget w,
int  wi,
int  h 
)
static

Definition at line 2011 of file gntblist.c.

References gnt_widget_get_size(), PREF_ROOT, and purple_prefs_set_int().

Referenced by blist_show().

◆ sort_blist_change_cb()

static void sort_blist_change_cb ( GntMenuItem item,
gpointer  n 
)
static

Definition at line 2707 of file gntblist.c.

References PREF_ROOT, and purple_prefs_set_string().

Referenced by create_menu().

◆ status_selection_changed()

◆ status_text_changed()

static gboolean status_text_changed ( GntEntry entry,
const char *  text,
gpointer  null 
)
static

◆ toggle_block_buddy()

static void toggle_block_buddy ( GntMenuItem item,
gpointer  buddy 
)
static

◆ toggle_pref_cb()

static void toggle_pref_cb ( GntMenuItem item,
gpointer  n 
)
static

Definition at line 2702 of file gntblist.c.

References purple_prefs_get_bool(), and purple_prefs_set_bool().

Referenced by create_menu().

◆ toggle_show_offline()

static void toggle_show_offline ( GntMenuItem item,
gpointer  buddy 
)
static

◆ tooltip_for_buddy()

◆ update_buddy_display()

◆ update_node_display()

◆ view_all_logs_cb()

static void view_all_logs_cb ( GntMenuItem item,
gpointer  n 
)
static

Definition at line 2955 of file gntblist.c.

References finch_log_show(), NULL, and PURPLE_LOG_IM.

Referenced by create_menu().

◆ view_log_cb()

◆ view_log_select_cb()

static void view_log_select_cb ( gpointer  data,
PurpleRequestFields fields 
)
static

Variable Documentation

◆ blist_ui_ops

◆ color_available

int color_available
static

Definition at line 157 of file gntblist.c.

Referenced by finch_blist_init(), and get_display_color().

◆ color_away

int color_away
static

Definition at line 158 of file gntblist.c.

Referenced by finch_blist_init(), and get_display_color().

◆ color_idle

int color_idle
static

Definition at line 160 of file gntblist.c.

Referenced by finch_blist_init(), and get_display_color().

◆ color_offline

int color_offline
static

Definition at line 159 of file gntblist.c.

Referenced by finch_blist_init(), and get_display_color().

◆ default_manager

FinchBlistManager default_manager
static
Initial value:

Definition at line 316 of file gntblist.c.

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

◆ ggblist

◆ managers

destroy_list
static void destroy_list(PurpleBuddyList *list)
Definition: gntblist.c:592
new_list
static void new_list(PurpleBuddyList *list)
Definition: gntblist.c:580
default_create_tooltip
static gboolean default_create_tooltip(gpointer selected_row, GString **body, char **tool_title)
Definition: gntblist.c:232
N_
#define N_(String)
Definition: internal.h:59
finch_request_add_buddy
static void finch_request_add_buddy(PurpleAccount *account, const char *username, const char *grp, const char *alias)
Definition: gntblist.c:670
finch_request_add_chat
static void finch_request_add_chat(PurpleAccount *account, PurpleGroup *grp, const char *alias, const char *name)
Definition: gntblist.c:777
default_find_parent
static gpointer default_find_parent(PurpleBlistNode *node)
Definition: gntblist.c:215
new_node
static void new_node(PurpleBlistNode *node)
Definition: gntblist.c:461
NULL
#define NULL
Definition: getopt1.c:52
default_can_add_node
static gboolean default_can_add_node(PurpleBlistNode *node)
Definition: gntblist.c:166
node_remove
static void node_remove(PurpleBuddyList *list, PurpleBlistNode *node)
Definition: gntblist.c:500
blist_show
static void blist_show(PurpleBuddyList *list)
Definition: gntblist.c:3114
node_update
static void node_update(PurpleBuddyList *list, PurpleBlistNode *node)
Definition: gntblist.c:533
finch_request_add_group
static void finch_request_add_group(void)
Definition: gntblist.c:850