* Fixes some issues
authorSergio Villar Senin <svillar@igalia.com>
Thu, 20 Sep 2007 11:14:52 +0000 (11:14 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 20 Sep 2007 11:14:52 +0000 (11:14 +0000)
pmo-trunk-r3368

src/maemo/easysetup/modest-easysetup-wizard.c
src/modest-widget-memory.c
src/widgets/modest-account-view.c

index 575b53b..0ce3312 100644 (file)
@@ -1640,7 +1640,7 @@ show_error (GtkWidget *parent_widget, const gchar* text)
 /** Attempt to create the account from the information that the user has entered.
  * @result: TRUE if the account was successfully created.
  */
-gboolean
+static gboolean
 create_account (ModestEasysetupWizardDialog *self, gboolean enabled)
 {
        ModestEasysetupWizardDialogPrivate *priv = WIZARD_DIALOG_GET_PRIVATE (self);
index 4effcdb..4c1a25e 100644 (file)
@@ -250,7 +250,7 @@ restore_settings_paned (ModestConf *conf, GtkPaned *paned, const gchar *name)
                 * The paned position is incorrectly saved somehow before its even visible,
                 * when we show the main window only some time after creating it,
                 * so this prevents a wrong value from being used. */
-               const gint max = (GTK_WIDGET(paned)->requisition.width)/3;
+               const gint max = (GTK_WIDGET(paned)->allocation.width)/3;
                if (pos > max)
                        pos = max;
                
index 7a828fb..aa03c39 100644 (file)
@@ -301,7 +301,9 @@ on_account_inserted (TnyAccountStore *account_store,
        self = MODEST_ACCOUNT_VIEW (user_data);
        priv = MODEST_ACCOUNT_VIEW_GET_PRIVATE (self);
 
-       update_account_view (priv->account_mgr, self);
+       /* Do not refresh the view with transport accounts */
+       if (TNY_IS_STORE_ACCOUNT (account))
+               update_account_view (priv->account_mgr, self);
 }
 
 static void
@@ -520,7 +522,7 @@ init_view (ModestAccountView *self)
                                                       "account_inserted",
                                                       G_CALLBACK(on_account_inserted), self);
 
-       priv->acc_inserted_handler = g_signal_connect (G_OBJECT (modest_runtime_get_account_store ()),
+       priv->acc_changed_handler = g_signal_connect (G_OBJECT (modest_runtime_get_account_store ()),
                                                       "account_changed",
                                                       G_CALLBACK(on_account_changed), self);