gboolean previous,
gboolean finish,
gboolean next);
-
+
static gboolean invoke_before_next_vfunc (ModestWizardDialog *wizard_dialog);
static void invoke_enable_buttons_vfunc (ModestWizardDialog *wizard_dialog);
gtk_dialog_add_button (dialog, _HL("ecdg_bd_wizard_cancel"), MODEST_WIZARD_DIALOG_CANCEL);
#endif
#ifdef MODEST_TOOLKIT_HILDON2
- gtk_dialog_add_button (dialog, _HL("ecdg_bd_wizard_finish"), MODEST_WIZARD_DIALOG_FINISH);
- gtk_dialog_add_button (dialog, _HL("ecdg_bd_wizard_previous"), MODEST_WIZARD_DIALOG_PREVIOUS);
- gtk_dialog_add_button (dialog, _HL("ecdg_bd_wizard_next"), MODEST_WIZARD_DIALOG_NEXT);
+ gtk_dialog_add_button (dialog, _HL("wdgt_bd_finish"), MODEST_WIZARD_DIALOG_FINISH);
+ gtk_dialog_add_button (dialog, _HL("wdgt_bd_previous"), MODEST_WIZARD_DIALOG_PREVIOUS);
+ gtk_dialog_add_button (dialog, _HL("wdgt_bd_next"), MODEST_WIZARD_DIALOG_NEXT);
#endif
#ifdef MODEST_TOOLKIT_GTK
gtk_dialog_add_button (dialog, GTK_STOCK_SAVE, MODEST_WIZARD_DIALOG_FINISH);
gint last = gtk_notebook_get_n_pages (notebook) - 1;
is_last = current == last;
is_first = current == 0;
-
+
/* If first page, previous and finish are disabled,
if last page, next is disabled */
-/* make_buttons_sensitive (wizard_dialog, */
-/* !is_first /\* previous *\/, !is_first /\* finish *\/, !is_last /\* next*\/); */
- make_buttons_sensitive (wizard_dialog, TRUE, TRUE, TRUE);
-
+ make_buttons_sensitive (wizard_dialog,
+ (is_first) ? FALSE : TRUE,
+ TRUE,
+ (is_last) ? FALSE : TRUE);
+
/* Allow derived classes to disable buttons to prevent navigation,
* according to their own validation logic: */
invoke_enable_buttons_vfunc (wizard_dialog);
-
+
/* Don't let the dialog close */
g_signal_stop_emission_by_name (wizard_dialog, "response");