* Follow the 30/70 rule for the main paned separation position when there is no...
authorSergio Villar Senin <svillar@igalia.com>
Wed, 13 Jun 2007 13:35:31 +0000 (13:35 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 13 Jun 2007 13:35:31 +0000 (13:35 +0000)
pmo-trunk-r2207

src/modest-widget-memory.c

index a5ceb76..6b4b13b 100644 (file)
@@ -241,6 +241,9 @@ restore_settings_paned (ModestConf *conf, GtkPaned *paned, const gchar *name)
        if (modest_conf_key_exists (conf, key, NULL)) {
                pos = modest_conf_get_int (conf, key, NULL);
                gtk_paned_set_position (paned, pos);
+       } else {
+               /* The initial position must follow the 30/70 rule */
+               gtk_paned_set_position (paned, GTK_WIDGET(paned)->requisition.width/3);
        }
 
        g_free (key);