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)  

gntroomlist.c File Reference
#include "finch.h"
#include <internal.h>
#include "gntrequest.h"
#include "gntroomlist.h"
#include "gntbox.h"
#include "gntbutton.h"
#include "gntcombobox.h"
#include "gnttextview.h"
#include "gnttree.h"
#include "gntwindow.h"
#include "debug.h"
Include dependency graph for gntroomlist.c:

Go to the source code of this file.

Data Structures

struct  _FinchRoomlist
 

Macros

#define PREF_ROOT   "/finch/roomlist"
 

Typedefs

typedef struct _FinchRoomlist FinchRoomlist
 

Functions

static void unset_roomlist (gpointer null)
 
static void update_roomlist (PurpleRoomlist *list)
 
static void fl_stop (GntWidget *button, gpointer null)
 
static void fl_get_list (GntWidget *button, gpointer null)
 
static void fl_add_chat (GntWidget *button, gpointer null)
 
static void fl_close (GntWidget *button, gpointer null)
 
static void roomlist_activated (GntWidget *widget)
 
static void roomlist_selection_changed (GntWidget *widget, gpointer old, gpointer current, gpointer null)
 
static void roomlist_account_changed (GntWidget *widget, gpointer old, gpointer current, gpointer null)
 
static void reset_account_list (PurpleAccount *account)
 
static void size_changed_cb (GntWidget *widget, int oldw, int oldh)
 
static void setup_roomlist (PurpleAccount *account)
 
static void fl_show_with_account (PurpleAccount *account)
 
static void fl_create (PurpleRoomlist *list)
 
static void fl_set_fields (PurpleRoomlist *list, GList *fields)
 
static void fl_add_room (PurpleRoomlist *roomlist, PurpleRoomlistRoom *room)
 
static void fl_destroy (PurpleRoomlist *list)
 
PurpleRoomlistUiOpsfinch_roomlist_get_ui_ops (void)
 
void finch_roomlist_show_all (void)
 
void finch_roomlist_init (void)
 
void finch_roomlist_uninit (void)
 

Variables

struct _FinchRoomlist froomlist
 
static PurpleRoomlistUiOps ui_ops
 

Detailed Description

GNT Room List API

Definition in file gntroomlist.c.

Macro Definition Documentation

◆ PREF_ROOT

#define PREF_ROOT   "/finch/roomlist"

Definition at line 42 of file gntroomlist.c.

Typedef Documentation

◆ FinchRoomlist

typedef struct _FinchRoomlist FinchRoomlist

Definition at line 63 of file gntroomlist.c.

Function Documentation

◆ finch_roomlist_get_ui_ops()

PurpleRoomlistUiOps* finch_roomlist_get_ui_ops ( void  )

Get the ui-functions.

Returns
The PurpleRoomlistUiOps structure populated with the appropriate functions.

Definition at line 401 of file gntroomlist.c.

References ui_ops.

Referenced by gnt_ui_init().

◆ finch_roomlist_init()

void finch_roomlist_init ( void  )

Initialize the roomlist subsystem.

Definition at line 411 of file gntroomlist.c.

References PREF_ROOT, purple_prefs_add_int(), and purple_prefs_add_none().

Referenced by gnt_ui_init().

◆ finch_roomlist_show_all()

void finch_roomlist_show_all ( void  )

Show the roomlist dialog.

Definition at line 406 of file gntroomlist.c.

References NULL, and purple_roomlist_show_with_account().

Referenced by gnt_ui_init().

◆ finch_roomlist_uninit()

void finch_roomlist_uninit ( void  )

Uninitialize the roomlist subsystem.

Definition at line 419 of file gntroomlist.c.

◆ fl_add_chat()

◆ fl_add_room()

◆ fl_close()

static void fl_close ( GntWidget button,
gpointer  null 
)
static

Definition at line 132 of file gntroomlist.c.

References froomlist, gnt_widget_destroy(), and _FinchRoomlist::window.

Referenced by setup_roomlist().

◆ fl_create()

static void fl_create ( PurpleRoomlist list)
static

Definition at line 344 of file gntroomlist.c.

References FINCH_SET_DATA, froomlist, NULL, setup_roomlist(), and update_roomlist().

◆ fl_destroy()

static void fl_destroy ( PurpleRoomlist list)
static

◆ fl_get_list()

◆ fl_set_fields()

static void fl_set_fields ( PurpleRoomlist list,
GList *  fields 
)
static

Definition at line 352 of file gntroomlist.c.

◆ fl_show_with_account()

◆ fl_stop()

static void fl_stop ( GntWidget button,
gpointer  null 
)
static

◆ reset_account_list()

◆ roomlist_account_changed()

static void roomlist_account_changed ( GntWidget widget,
gpointer  old,
gpointer  current,
gpointer  null 
)
static

◆ roomlist_activated()

◆ roomlist_selection_changed()

◆ setup_roomlist()

◆ size_changed_cb()

static void size_changed_cb ( GntWidget widget,
int  oldw,
int  oldh 
)
static

Definition at line 256 of file gntroomlist.c.

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

Referenced by fl_show_with_account().

◆ unset_roomlist()

static void unset_roomlist ( gpointer  null)
static

◆ update_roomlist()

static void update_roomlist ( PurpleRoomlist list)
static

Variable Documentation

◆ froomlist

◆ ui_ops

PurpleRoomlistUiOps ui_ops
static
Initial value:

Definition at line 386 of file gntroomlist.c.

Referenced by finch_roomlist_get_ui_ops().

fl_set_fields
static void fl_set_fields(PurpleRoomlist *list, GList *fields)
Definition: gntroomlist.c:352
fl_create
static void fl_create(PurpleRoomlist *list)
Definition: gntroomlist.c:344
fl_show_with_account
static void fl_show_with_account(PurpleAccount *account)
Definition: gntroomlist.c:330
fl_destroy
static void fl_destroy(PurpleRoomlist *list)
Definition: gntroomlist.c:374
NULL
#define NULL
Definition: getopt1.c:52
fl_add_room
static void fl_add_room(PurpleRoomlist *roomlist, PurpleRoomlistRoom *room)
Definition: gntroomlist.c:357