+static void
+save_sizes (ModestMainWindow *self)
+{
+ ModestMainWindowPrivate *priv;
+ int fol_pos, msg_pos;
+ int height, width;
+
+ priv = MODEST_MAIN_WINDOW_GET_PRIVATE(self);
+
+ height = GTK_WIDGET(priv->main_paned)->allocation.height;
+ modest_conf_set_int (priv->conf, MODEST_MAIN_PANED_HEIGHT, height, NULL);
+
+ width = GTK_WIDGET(priv->folder_paned)->allocation.width;
+ fol_pos = gtk_paned_get_position (GTK_PANED(priv->folder_paned));
+ modest_conf_set_int (priv->conf, MODEST_FOLDER_PANED_WIDTH, width, NULL);
+ modest_conf_set_int (priv->conf, MODEST_FOLDER_PANED_DIVIDER_POS, fol_pos, NULL);
+
+ width = GTK_WIDGET(priv->msg_paned)->allocation.width;
+ msg_pos = gtk_paned_get_position (GTK_PANED(priv->msg_paned));
+ modest_conf_set_int (priv->conf, MODEST_MSG_PANED_WIDTH, width, NULL);
+ modest_conf_set_int (priv->conf, MODEST_MSG_PANED_DIVIDER_POS, msg_pos, NULL);
+}
+