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)  

irssi.c File Reference
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include "gntinternal.h"
#include "gnt.h"
#include "gntbox.h"
#include "gntmenu.h"
#include "gntstyle.h"
#include "gntwm.h"
#include "gntwindow.h"
#include "gntlabel.h"
Include dependency graph for irssi.c:

Go to the source code of this file.

Data Structures

struct  _Irssi
 
struct  _IrssiClass
 

Macros

#define TYPE_IRSSI   (irssi_get_gtype())
 

Typedefs

typedef struct _Irssi Irssi
 
typedef struct _IrssiClass IrssiClass
 

Functions

GType irssi_get_gtype (void)
 
void gntwm_init (GntWM **wm)
 
static void get_xywh_for_frame (Irssi *irssi, int hor, int vert, int *x, int *y, int *w, int *h)
 
static void draw_line_separators (Irssi *irssi)
 
static gboolean is_budddylist (GntWidget *win)
 
static void remove_border_set_position_size (GntWM *wm, GntWidget *win, int x, int y, int w, int h)
 
static void irssi_new_window (GntWM *wm, GntWidget *win)
 
static void irssi_window_resized (GntWM *wm, GntNode *node)
 
static gboolean irssi_close_window (GntWM *wm, GntWidget *win)
 
static gboolean update_conv_window_title (GntNode *node)
 
static void irssi_update_window (GntWM *wm, GntNode *node)
 
static void find_window_position (Irssi *irssi, GntWidget *win, int *h, int *v)
 
static gboolean move_direction (GntBindable *bindable, GList *list)
 
static void refresh_window (GntWidget *widget, GntNode *node, Irssi *irssi)
 
static void irssi_terminal_refresh (GntWM *wm)
 
static void irssi_class_init (IrssiClass *klass)
 

Variables

static void(* org_new_window )(GntWM *wm, GntWidget *win)
 

Macro Definition Documentation

◆ TYPE_IRSSI

#define TYPE_IRSSI   (irssi_get_gtype())
  1. Buddylist is aligned on the left.
  2. The rest of the screen is split into MxN grid for conversation windows.
    • M = split-h in ~/.gntrc:[irssi]
    • N = split-v in ~/.gntrc:[irssi]

Press alt-shift-k/j/l/h to move the selected window to the frame above/below/left/right of the current frame.

  1. All the other windows are always centered.

Definition at line 46 of file irssi.c.

Typedef Documentation

◆ Irssi

typedef struct _Irssi Irssi

◆ IrssiClass

typedef struct _IrssiClass IrssiClass

Function Documentation

◆ draw_line_separators()

static void draw_line_separators ( Irssi irssi)
static

◆ find_window_position()

static void find_window_position ( Irssi irssi,
GntWidget win,
int *  h,
int *  v 
)
static

Definition at line 238 of file irssi.c.

References _Irssi::buddylistwidth, gnt_widget_get_position(), _Irssi::horiz, and _Irssi::vert.

Referenced by move_direction(), and refresh_window().

◆ get_xywh_for_frame()

static void get_xywh_for_frame ( Irssi irssi,
int  hor,
int  vert,
int *  x,
int *  y,
int *  w,
int *  h 
)
static

Definition at line 69 of file irssi.c.

References _Irssi::buddylistwidth, _Irssi::horiz, and _Irssi::vert.

Referenced by irssi_new_window(), move_direction(), and refresh_window().

◆ gntwm_init()

void gntwm_init ( GntWM **  wm)

◆ irssi_class_init()

◆ irssi_close_window()

static gboolean irssi_close_window ( GntWM wm,
GntWidget win 
)
static

Definition at line 199 of file irssi.c.

References FALSE, is_budddylist(), and wm.

Referenced by irssi_class_init().

◆ irssi_get_gtype()

GType irssi_get_gtype ( void  )

Definition at line 370 of file irssi.c.

References GNT_TYPE_WM, info, irssi_class_init(), NULL, and dbus-analyze-signals::type.

◆ irssi_new_window()

◆ irssi_terminal_refresh()

static void irssi_terminal_refresh ( GntWM wm)
static

Definition at line 316 of file irssi.c.

References draw_line_separators(), _GntWM::nodes, refresh_window(), and wm.

Referenced by irssi_class_init().

◆ irssi_update_window()

static void irssi_update_window ( GntWM wm,
GntNode node 
)
static

◆ irssi_window_resized()

static void irssi_window_resized ( GntWM wm,
GntNode node 
)
static

◆ is_budddylist()

static gboolean is_budddylist ( GntWidget win)
static

Definition at line 133 of file irssi.c.

References FALSE, gnt_widget_get_name(), name, and TRUE.

Referenced by irssi_close_window(), irssi_window_resized(), move_direction(), and refresh_window().

◆ move_direction()

static gboolean move_direction ( GntBindable bindable,
GList *  list 
)
static

◆ refresh_window()

◆ remove_border_set_position_size()

static void remove_border_set_position_size ( GntWM wm,
GntWidget win,
int  x,
int  y,
int  w,
int  h 
)
static

◆ update_conv_window_title()

static gboolean update_conv_window_title ( GntNode node)
static

Variable Documentation

◆ org_new_window

void(* org_new_window) (GntWM *wm, GntWidget *win)
static

Definition at line 66 of file irssi.c.

Referenced by irssi_class_init(), and irssi_new_window().