28 #ifndef __PIDGIN_STATUS_BOX_H__ 29 #define __PIDGIN_STATUS_BOX_H__ 40 #define PIDGIN_TYPE_STATUS_BOX (pidgin_status_box_get_type ()) 41 #define PIDGIN_STATUS_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PIDGIN_TYPE_STATUS_BOX, PidginStatusBox)) 42 #define PIDGIN_STATUS_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_CAST ((vtable), PIDGIN_TYPE_STATUS_BOX, PidginStatusBoxClass)) 43 #define PIDGIN_IS_STATUS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PIDGIN_TYPE_STATUS_BOX)) 44 #define PIDGIN_IS_STATUS_BOX_CLASS(vtable) (G_TYPE_CHECK_CLASS_TYPE ((vtable), PIDGIN_TYPE_STATUS_BOX)) 45 #define PIDGIN_STATUS_BOX_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst), PIDGIN_TYPE_STATUS_BOX, PidginStatusBoxClass)) 55 PIDGIN_STATUS_BOX_TYPE_SEPARATOR,
56 PIDGIN_STATUS_BOX_TYPE_PRIMITIVE,
57 PIDGIN_STATUS_BOX_TYPE_POPULAR,
58 PIDGIN_STATUS_BOX_TYPE_SAVED_POPULAR,
59 PIDGIN_STATUS_BOX_TYPE_CUSTOM,
60 PIDGIN_STATUS_BOX_TYPE_SAVED,
61 PIDGIN_STATUS_BOX_NUM_TYPES
62 } PidginStatusBoxItemType;
69 GtkContainer parent_instance;
93 GdkPixbuf *buddy_icon;
94 GdkPixbuf *buddy_icon_hover;
95 GtkWidget *buddy_icon_sel;
98 GtkWidget *icon_box_menu;
99 GdkCursor *hand_cursor;
100 GdkCursor *arrow_cursor;
102 gboolean icon_opaque;
104 gboolean imhtml_visible;
106 GtkWidget *cell_view;
107 GtkCellRenderer *icon_rend;
108 GtkCellRenderer *text_rend;
110 GdkPixbuf *error_pixbuf;
111 int connecting_index;
112 GdkPixbuf *connecting_pixbufs[9];
114 GdkPixbuf *typing_pixbufs[6];
116 gboolean network_available;
130 GtkWidget *toggle_button;
134 GtkWidget *popup_window;
135 GtkWidget *popup_frame;
136 GtkWidget *scrolled_window;
137 GtkWidget *cell_view_frame;
138 GtkTreeViewColumn *column;
139 GtkWidget *tree_view;
140 gboolean popup_in_progress;
141 GtkTreeRowReference *active_row;
146 GtkContainerClass parent_class;
149 void (* changed) (GtkComboBox *combo_box);
152 void (*_gtk_reserved0) (void);
153 void (*_gtk_reserved1) (void);
154 void (*_gtk_reserved2) (void);
155 void (*_gtk_reserved3) (void);
159 GType pidgin_status_box_get_type (
void) G_GNUC_CONST;
160 GtkWidget *pidgin_status_box_new (
void);
161 GtkWidget *pidgin_status_box_new_with_account (
PurpleAccount *);
164 pidgin_status_box_add(
PidginStatusBox *status_box, PidginStatusBoxItemType type, GdkPixbuf *pixbuf,
const char *text,
const char *sec_text, gpointer data);
170 pidgin_status_box_set_network_available(
PidginStatusBox *status_box, gboolean available);
173 pidgin_status_box_set_connecting(
PidginStatusBox *status_box, gboolean connecting);
GtkListStore * dropdown_store
This is the dropdown GtkListStore that contains the available statuses, plus some recently used statu...
struct _PurpleStoredImage PurpleStoredImage
A set of utility functions that provide a reference-counted immutable wrapper around an image's data ...
Structure representing an account.
GtkListStore * store
This GtkListStore contains only one row–the currently selected status.
Status APIA brief explanation of the status API:
GTK+ IM/HTML rendering component.