#define FLASH_TIMEOUT 500
#define GET_PRIV(obj) EMPATHY_GET_PRIV (obj, EmpathyPresenceChooser)
+typedef enum _PresenceChooserEntryType PresenceChooserEntryType;
+enum _PresenceChooserEntryType
+{
+ ENTRY_TYPE_BUILTIN,
+ ENTRY_TYPE_SAVED,
+ ENTRY_TYPE_CUSTOM,
+ ENTRY_TYPE_SEPARATOR,
+ ENTRY_TYPE_EDIT_CUSTOM,
+};
+
typedef struct {
EmpathyIdle *idle;
guint focus_out_idle_source;
McPresence state;
- int previous_type;
+ PresenceChooserEntryType previous_type;
McPresence flash_state_1;
McPresence flash_state_2;
N_COLUMNS
};
-enum
-{
- ENTRY_TYPE_BUILTIN,
- ENTRY_TYPE_SAVED,
- ENTRY_TYPE_CUSTOM,
- ENTRY_TYPE_SEPARATOR,
- ENTRY_TYPE_EDIT_CUSTOM,
-};
-
static GtkTreeModel *
presence_chooser_create_model (void)
{
char *icon_name;
McPresence new_state;
gboolean customisable = TRUE;
- int type = -1;
+ PresenceChooserEntryType type = -1;
GtkWidget *entry;
GtkTreeModel *model = gtk_combo_box_get_model (self);
GtkTreeIter *iter,
gpointer data)
{
- int type;
+ PresenceChooserEntryType type;
gtk_tree_model_get (model, iter,
COL_TYPE, &type,
-1);