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)  

gntnotify.c File Reference
#include <internal.h>
#include <gnt.h>
#include <gntbox.h>
#include <gntbutton.h>
#include <gntlabel.h>
#include <gnttree.h>
#include <gntutils.h>
#include <gntwindow.h>
#include "finch.h"
#include <util.h>
#include "gntnotify.h"
#include "debug.h"
Include dependency graph for gntnotify.c:

Go to the source code of this file.

Functions

static void notify_msg_window_destroy_cb (GntWidget *window, PurpleNotifyType type)
 
static void * finch_notify_common (PurpleNotifyType ntype, PurpleNotifyMsgType msgtype, const char *title, const char *primary, const char *secondary)
 
static void * finch_notify_message (PurpleNotifyMsgType type, const char *title, const char *primary, const char *secondary)
 
static void finch_close_notify (PurpleNotifyType type, void *handle)
 
static void * finch_notify_formatted (const char *title, const char *primary, const char *secondary, const char *text)
 
static void reset_email_dialog (void)
 
static void setup_email_dialog (void)
 
static void * finch_notify_emails (PurpleConnection *gc, size_t count, gboolean detailed, const char **subjects, const char **froms, const char **tos, const char **urls)
 
static void * finch_notify_email (PurpleConnection *gc, const char *subject, const char *from, const char *to, const char *url)
 
static char * userinfo_hash (PurpleAccount *account, const char *who)
 
static void remove_userinfo (GntWidget *widget, gpointer key)
 
static char * purple_notify_user_info_get_xhtml (PurpleNotifyUserInfo *user_info)
 
static void * finch_notify_userinfo (PurpleConnection *gc, const char *who, PurpleNotifyUserInfo *user_info)
 
static void notify_button_activated (GntWidget *widget, PurpleNotifySearchButton *b)
 
static void finch_notify_sr_new_rows (PurpleConnection *gc, PurpleNotifySearchResults *results, void *data)
 
static void * finch_notify_searchresults (PurpleConnection *gc, const char *title, const char *primary, const char *secondary, PurpleNotifySearchResults *results, gpointer data)
 
static void * finch_notify_uri (const char *url)
 
PurpleNotifyUiOpsfinch_notify_get_ui_ops ()
 
void finch_notify_init ()
 
void finch_notify_uninit ()
 

Variables

struct {
   GntWidget *   window
 
   GntWidget *   tree
 
emaildialog
 
static GHashTable * userinfo
 
static PurpleNotifyUiOps ops
 

Detailed Description

GNT Notify API

Definition in file gntnotify.c.

Function Documentation

◆ finch_close_notify()

static void finch_close_notify ( PurpleNotifyType  type,
void *  handle 
)
static

◆ finch_notify_common()

◆ finch_notify_email()

static void* finch_notify_email ( PurpleConnection gc,
const char *  subject,
const char *  from,
const char *  to,
const char *  url 
)
static

Definition at line 262 of file gntnotify.c.

References finch_notify_emails(), from, NULL, and to.

◆ finch_notify_emails()

static void* finch_notify_emails ( PurpleConnection gc,
size_t  count,
gboolean  detailed,
const char **  subjects,
const char **  froms,
const char **  tos,
const char **  urls 
)
static

◆ finch_notify_formatted()

static void* finch_notify_formatted ( const char *  title,
const char *  primary,
const char *  secondary,
const char *  text 
)
static

◆ finch_notify_get_ui_ops()

PurpleNotifyUiOps* finch_notify_get_ui_ops ( void  )

Get the ui-functions.

Returns
The PurpleNotifyUiOps structure populated with the appropriate functions.

Definition at line 525 of file gntnotify.c.

References ops.

Referenced by gnt_ui_init().

◆ finch_notify_init()

void finch_notify_init ( void  )

Perform necessary initializations.

Definition at line 530 of file gntnotify.c.

References NULL, and userinfo.

Referenced by gnt_ui_init().

◆ finch_notify_message()

static void* finch_notify_message ( PurpleNotifyMsgType  type,
const char *  title,
const char *  primary,
const char *  secondary 
)
static

◆ finch_notify_searchresults()

◆ finch_notify_sr_new_rows()

static void finch_notify_sr_new_rows ( PurpleConnection gc,
PurpleNotifySearchResults results,
void *  data 
)
static

◆ finch_notify_uninit()

void finch_notify_uninit ( void  )

Perform necessary uninitializations.

Definition at line 535 of file gntnotify.c.

References userinfo.

◆ finch_notify_uri()

static void* finch_notify_uri ( const char *  url)
static

Definition at line 500 of file gntnotify.c.

References _(), finch_notify_common(), NULL, PURPLE_NOTIFY_MSG_INFO, and PURPLE_NOTIFY_URI.

◆ finch_notify_userinfo()

◆ notify_button_activated()

static void notify_button_activated ( GntWidget widget,
PurpleNotifySearchButton b 
)
static

◆ notify_msg_window_destroy_cb()

static void notify_msg_window_destroy_cb ( GntWidget window,
PurpleNotifyType  type 
)
static

◆ purple_notify_user_info_get_xhtml()

◆ remove_userinfo()

static void remove_userinfo ( GntWidget widget,
gpointer  key 
)
static

Definition at line 284 of file gntnotify.c.

References userinfo.

Referenced by finch_notify_userinfo().

◆ reset_email_dialog()

static void reset_email_dialog ( void  )
static

Definition at line 171 of file gntnotify.c.

References emaildialog, and NULL.

Referenced by setup_email_dialog().

◆ setup_email_dialog()

◆ userinfo_hash()

static char* userinfo_hash ( PurpleAccount account,
const char *  who 
)
static

Definition at line 276 of file gntnotify.c.

References account, purple_account_get_username(), and purple_normalize().

Referenced by finch_notify_userinfo().

Variable Documentation

◆ emaildialog

struct { ... } emaildialog

◆ ops

◆ tree

◆ userinfo

◆ window

finch_notify_formatted
static void * finch_notify_formatted(const char *title, const char *primary, const char *secondary, const char *text)
Definition: gntnotify.c:150
finch_notify_sr_new_rows
static void finch_notify_sr_new_rows(PurpleConnection *gc, PurpleNotifySearchResults *results, void *data)
Definition: gntnotify.c:388
finch_close_notify
static void finch_close_notify(PurpleNotifyType type, void *handle)
Definition: gntnotify.c:130
finch_notify_userinfo
static void * finch_notify_userinfo(PurpleConnection *gc, const char *who, PurpleNotifyUserInfo *user_info)
Definition: gntnotify.c:330
NULL
#define NULL
Definition: getopt1.c:52
finch_notify_email
static void * finch_notify_email(PurpleConnection *gc, const char *subject, const char *from, const char *to, const char *url)
Definition: gntnotify.c:262
finch_notify_searchresults
static void * finch_notify_searchresults(PurpleConnection *gc, const char *title, const char *primary, const char *secondary, PurpleNotifySearchResults *results, gpointer data)
Definition: gntnotify.c:406
finch_notify_uri
static void * finch_notify_uri(const char *url)
Definition: gntnotify.c:500
finch_notify_emails
static void * finch_notify_emails(PurpleConnection *gc, size_t count, gboolean detailed, const char **subjects, const char **froms, const char **tos, const char **urls)
Definition: gntnotify.c:211
finch_notify_message
static void * finch_notify_message(PurpleNotifyMsgType type, const char *title, const char *primary, const char *secondary)
Definition: gntnotify.c:122