ekg2
|
00001 00002 typedef struct _chanview chanview; 00003 typedef struct _chan chan; 00004 00005 chanview *chanview_new (int type, int trunc_len, gboolean sort, gboolean use_icons, GtkStyle *style); 00006 void chanview_set_callbacks (chanview *cv, 00007 void (*cb_focus) (chanview *, chan *, int tag, void *userdata), 00008 void (*cb_xbutton) (chanview *, chan *, int tag, void *userdata), 00009 gboolean (*cb_contextmenu) (chanview *, chan *, int tag, void *userdata, GdkEventButton *), 00010 int (*cb_compare) (void *a, void *b)); 00011 void chanview_set_impl (chanview *cv, int type); 00012 chan *chanview_add (chanview *cv, char *name, void *userdata, gboolean allow_closure, int tag, GdkPixbuf *icon); 00013 int chanview_get_size (chanview *cv); 00014 GtkWidget *chanview_get_box (chanview *cv); 00015 void chanview_move_focus (chanview *cv, gboolean relative, int num); 00016 GtkOrientation chanview_get_orientation (chanview *cv); 00017 void chanview_set_orientation (chanview *cv, gboolean vertical); 00018 00019 int chan_get_tag (chan *ch); 00020 void *chan_get_userdata (chan *ch); 00021 void chan_focus (chan *ch); 00022 void chan_move (chan *ch, int delta); 00023 void chan_set_color (chan *ch, PangoAttrList *list); 00024 void chan_rename (chan *ch, char *new_name, int trunc_len); 00025 gboolean chan_remove (chan *ch, gboolean force); 00026 gboolean chan_is_collapsed (chan *ch); 00027 chan * chan_get_parent (chan *ch); 00028 00029 #define FOCUS_NEW_ALL 1 00030 #define FOCUS_NEW_ONLY_ASKED 2 00031 #define FOCUS_NEW_NONE 0 00032