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)  

gntlog.c File Reference
#include <internal.h>
#include "finch.h"
#include <gnt.h>
#include <gntbox.h>
#include <gntbutton.h>
#include <gntentry.h>
#include <gntlabel.h>
#include <gnttextview.h>
#include <gnttree.h>
#include <gntwindow.h>
#include "account.h"
#include "debug.h"
#include "log.h"
#include "notify.h"
#include "request.h"
#include "util.h"
#include "gntlog.h"
Include dependency graph for gntlog.c:

Go to the source code of this file.

Data Structures

struct  log_viewer_hash_t
 

Functions

static void populate_log_tree (FinchLogViewer *lv)
 
static guint log_viewer_hash (gconstpointer data)
 
static gboolean log_viewer_equal (gconstpointer y, gconstpointer z)
 
static const char * log_get_date (PurpleLog *log)
 
static void search_cb (GntWidget *button, FinchLogViewer *lv)
 
static void destroy_cb (GntWidget *w, struct log_viewer_hash_t *ht)
 
static void log_select_cb (GntWidget *w, gpointer old, gpointer new, FinchLogViewer *viewer)
 
static FinchLogViewerdisplay_log_viewer (struct log_viewer_hash_t *ht, GList *logs, const char *title, int log_size)
 
static void our_logging_blows (PurpleLogSet *set, PurpleLogSet *setagain, GList **list)
 
void finch_log_show (PurpleLogType type, const char *username, PurpleAccount *account)
 
void finch_log_show_contact (PurpleContact *contact)
 
void finch_syslog_show ()
 
void * finch_log_get_handle (void)
 
void finch_log_init (void)
 
void finch_log_uninit (void)
 

Variables

static GHashTable * log_viewers = NULL
 
static FinchLogViewersyslog_viewer = NULL
 

Detailed Description

GNT Log viewer

Definition in file gntlog.c.

Function Documentation

◆ destroy_cb()

◆ display_log_viewer()

◆ finch_log_get_handle()

void* finch_log_get_handle ( void  )

Returns the GNT log subsystem handle.

Returns
The GNT log subsystem handle.

Definition at line 522 of file gntlog.c.

References handle.

Referenced by finch_log_init(), finch_log_uninit(), and log_select_cb().

◆ finch_log_init()

void finch_log_init ( void  )

◆ finch_log_show()

◆ finch_log_show_contact()

◆ finch_log_uninit()

void finch_log_uninit ( void  )

Uninitializes the GNT log subsystem.

Definition at line 543 of file gntlog.c.

References finch_log_get_handle(), and purple_signals_unregister_by_instance().

◆ finch_syslog_show()

◆ log_get_date()

static const char* log_get_date ( PurpleLog log)
static

Definition at line 104 of file gntlog.c.

References purple_date_format_full(), _PurpleLog::time, and _PurpleLog::tm.

Referenced by log_select_cb(), populate_log_tree(), and search_cb().

◆ log_select_cb()

◆ log_viewer_equal()

static gboolean log_viewer_equal ( gconstpointer  y,
gconstpointer  z 
)
static

◆ log_viewer_hash()

static guint log_viewer_hash ( gconstpointer  data)
static

◆ our_logging_blows()

static void our_logging_blows ( PurpleLogSet set,
PurpleLogSet setagain,
GList **  list 
)
static

Definition at line 361 of file gntlog.c.

References purple_log_get_logs(), PURPLE_LOG_IM, and set().

Referenced by finch_log_show().

◆ populate_log_tree()

◆ search_cb()

Variable Documentation

◆ log_viewers

GHashTable* log_viewers = NULL
static

Definition at line 47 of file gntlog.c.

Referenced by destroy_cb(), display_log_viewer(), finch_log_show(), and finch_log_show_contact().

◆ syslog_viewer

FinchLogViewer* syslog_viewer = NULL
static

Definition at line 49 of file gntlog.c.

Referenced by destroy_cb(), and finch_syslog_show().