From 37d7a9db55c7c6edf07587beacd6cae2e328b5d0 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Wed, 25 Mar 2009 18:17:10 +0000 Subject: [PATCH] Fixes NB#104249, do not show "entry some text" banner if the "Next" button is already disabled pmo-trunk-r8385 --- src/hildon2/modest-easysetup-wizard-dialog.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/hildon2/modest-easysetup-wizard-dialog.c b/src/hildon2/modest-easysetup-wizard-dialog.c index 00b7fd2..39c0ff2 100644 --- a/src/hildon2/modest-easysetup-wizard-dialog.c +++ b/src/hildon2/modest-easysetup-wizard-dialog.c @@ -267,27 +267,12 @@ static void on_caption_entry_changed (GtkEditable *editable, gpointer user_data) { ModestEasysetupWizardDialog *self; - gboolean mandatory, empty; - ModestEasysetupWizardDialogPrivate *priv; g_return_if_fail (user_data); self = MODEST_EASYSETUP_WIZARD_DIALOG (user_data); - priv = MODEST_EASYSETUP_WIZARD_DIALOG_GET_PRIVATE (self); invoke_enable_buttons_vfunc(self); - - empty = !g_utf8_collate (gtk_entry_get_text (GTK_ENTRY (editable)), ""); - mandatory = ((GtkWidget *) editable == priv->entry_account_title) || - ((GtkWidget *) editable == priv->entry_user_username) || - ((GtkWidget *) editable == priv->entry_user_email); - - /* Show a banner & get focus */ - if (empty && mandatory) { - modest_platform_information_banner ((GtkWidget *) editable, NULL, - _CS("ckct_ib_enter_some_text")); - gtk_widget_grab_focus (GTK_WIDGET (editable)); - } } static void -- 1.7.9.5