ekg2
GIT master
|
#include "ekg2.h"
#include <stdlib.h>
#include <string.h>
#include <gtk/gtk.h>
#include "chanview.h"
#include "gtkutil.h"
#include "chanview-tabs.inc"
#include "chanview-tree.inc"
Struktury danych | |
struct | _chanview |
struct | _chan |
Definicje | |
#define | COL_NAME 0 /* (char *) */ |
#define | COL_CHAN 1 /* (chan *) */ |
#define | COL_ATTR 2 /* (PangoAttrList *) */ |
#define | COL_PIXBUF 3 /* (GdkPixbuf *) */ |
Funkcje | |
static chan * | cv_find_chan_by_number (chanview *cv, int num) |
static int | cv_find_number_of_chan (chanview *cv, chan *find_ch) |
static char * | truncate_tab_name (char *name, int max) |
static void | model_foreach_1 (GtkTreeModel *model, void(*func)(void *, GtkTreeIter *), void *userdata) |
static void | chanview_pop_cb (chanview *cv, GtkTreeIter *iter) |
static void | chanview_populate (chanview *cv) |
void | chanview_set_impl (chanview *cv, int type) |
static void | chanview_free_ch (chanview *cv, GtkTreeIter *iter) |
static void | chanview_destroy_store (chanview *cv) |
static void | chanview_destroy (chanview *cv) |
static void | chanview_box_destroy_cb (GtkWidget *box, chanview *cv) |
chanview * | chanview_new (int type, int trunc_len, gboolean sort, gboolean use_icons, GtkStyle *style) |
void | chanview_set_callbacks (chanview *cv, void(*cb_focus)(chanview *, chan *, int tag, void *userdata), void(*cb_xbutton)(chanview *, chan *, int tag, void *userdata), gboolean(*cb_contextmenu)(chanview *, chan *, int tag, void *userdata, GdkEventButton *), int(*cb_compare)(void *a, void *b)) |
static chan * | chanview_add_real (chanview *cv, char *name, void *userdata, gboolean allow_closure, int tag, GdkPixbuf *icon, chan *ch, chan *avoid) |
chan * | chanview_add (chanview *cv, char *name, void *userdata, gboolean allow_closure, int tag, GdkPixbuf *icon) |
int | chanview_get_size (chanview *cv) |
GtkWidget * | chanview_get_box (chanview *cv) |
void | chanview_move_focus (chanview *cv, gboolean relative, int num) |
GtkOrientation | chanview_get_orientation (chanview *cv) |
void | chanview_set_orientation (chanview *cv, gboolean vertical) |
int | chan_get_tag (chan *ch) |
void * | chan_get_userdata (chan *ch) |
void | chan_focus (chan *ch) |
void | chan_move (chan *ch, int delta) |
void | chan_set_color (chan *ch, PangoAttrList *list) |
void | chan_rename (chan *ch, char *name, int trunc_len) |
static void | chan_emancipate_children (chan *ch) |
gboolean | chan_remove (chan *ch, gboolean force) |
gboolean | chan_is_collapsed (chan *ch) |
chan * | chan_get_parent (chan *ch) |
#define COL_ATTR 2 /* (PangoAttrList *) */ |
#define COL_CHAN 1 /* (chan *) */ |
#define COL_NAME 0 /* (char *) */ |
#define COL_PIXBUF 3 /* (GdkPixbuf *) */ |
|
static |
void chan_focus | ( | chan * | ch | ) |
int chan_get_tag | ( | chan * | ch | ) |
void* chan_get_userdata | ( | chan * | ch | ) |
gboolean chan_is_collapsed | ( | chan * | ch | ) |
void chan_move | ( | chan * | ch, |
int | delta | ||
) |
gboolean chan_remove | ( | chan * | ch, |
gboolean | force | ||
) |
void chan_rename | ( | chan * | ch, |
char * | name, | ||
int | trunc_len | ||
) |
void chan_set_color | ( | chan * | ch, |
PangoAttrList * | list | ||
) |
chan* chanview_add | ( | chanview * | cv, |
char * | name, | ||
void * | userdata, | ||
gboolean | allow_closure, | ||
int | tag, | ||
GdkPixbuf * | icon | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
GtkWidget* chanview_get_box | ( | chanview * | cv | ) |
GtkOrientation chanview_get_orientation | ( | chanview * | cv | ) |
int chanview_get_size | ( | chanview * | cv | ) |
void chanview_move_focus | ( | chanview * | cv, |
gboolean | relative, | ||
int | num | ||
) |
chanview* chanview_new | ( | int | type, |
int | trunc_len, | ||
gboolean | sort, | ||
gboolean | use_icons, | ||
GtkStyle * | style | ||
) |
|
static |
|
static |
void chanview_set_callbacks | ( | chanview * | cv, |
void(*)(chanview *, chan *, int tag, void *userdata) | cb_focus, | ||
void(*)(chanview *, chan *, int tag, void *userdata) | cb_xbutton, | ||
gboolean(*)(chanview *, chan *, int tag, void *userdata, GdkEventButton *) | cb_contextmenu, | ||
int(*)(void *a, void *b) | cb_compare | ||
) |
void chanview_set_impl | ( | chanview * | cv, |
int | type | ||
) |
void chanview_set_orientation | ( | chanview * | cv, |
gboolean | vertical | ||
) |
|
static |
|
static |