diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-07-08 18:39:07 +0800 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2010-08-05 22:55:07 +0800 |
commit | f8c37da731af9f6cd74e7a0ef08fa02059d981ac (patch) | |
tree | 88678c98422ba129ac0b6f602c5832bc9570251b /src/empathy-account-assistant.c | |
parent | 5cc326f741ab695e4fac8f4c4ccd99cf235115fc (diff) | |
download | gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.gz gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.bz2 gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.lz gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.xz gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.tar.zst gsoc2013-empathy-f8c37da731af9f6cd74e7a0ef08fa02059d981ac.zip |
Fix missing entries in switch statements
Added missing default cases and missing enum cases.
Diffstat (limited to 'src/empathy-account-assistant.c')
-rw-r--r-- | src/empathy-account-assistant.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/empathy-account-assistant.c b/src/empathy-account-assistant.c index 6ad475652..585916903 100644 --- a/src/empathy-account-assistant.c +++ b/src/empathy-account-assistant.c @@ -57,12 +57,12 @@ typedef enum { RESPONSE_CREATE_STOP = 2 } CreateEnterPageResponse; -enum { +typedef enum { PAGE_INTRO = 0, PAGE_IMPORT = 1, PAGE_ENTER_CREATE = 2, PAGE_SALUT = 3, -}; +} PageID; enum { PROP_PARENT = 1, @@ -75,7 +75,7 @@ typedef struct { gboolean enter_create_forward; TpAccountManager *account_mgr; EmpathyConnectionManagers *connection_mgrs; - gint current_page_id; + PageID current_page_id; /* enter or create page */ GtkWidget *enter_or_create_page; @@ -933,12 +933,8 @@ impl_signal_prepare (GtkAssistant *assistant, gint current_idx; /* check from which page we are coming from */ - switch (priv->current_page_id) - { - case PAGE_IMPORT: - empathy_import_widget_add_selected_accounts (priv->iw); - break; - } + if (priv->current_page_id == PAGE_IMPORT) + empathy_import_widget_add_selected_accounts (priv->iw); current_idx = gtk_assistant_get_current_page (assistant); priv->current_page_id = current_idx; |