X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-widget-memory.c;h=b480fd24b36f44224068d795ecc8d3403c72aeb3;hb=53ede89ac00d6116a9fda93c78b00d56b036b36c;hp=d3763717de294e138b8fcc9431ce097cdb63f4c7;hpb=b595df146cd98e992de9fc91ff3aeeb71221f24b;p=modest diff --git a/src/modest-widget-memory.c b/src/modest-widget-memory.c index d376371..b480fd2 100644 --- a/src/modest-widget-memory.c +++ b/src/modest-widget-memory.c @@ -242,17 +242,11 @@ restore_settings_paned (ModestConf *conf, GtkPaned *paned, const gchar *name) gchar *key; int percent, pos; - key = _modest_widget_memory_get_keyname (name, MODEST_WIDGET_MEMORY_PARAM_POS); + key = _modest_widget_memory_get_keyname (name, MODEST_WIDGET_MEMORY_PARAM_POS); + percent = modest_conf_get_int (conf, key, NULL); - if (modest_conf_key_exists (conf, key, NULL)) { - percent = modest_conf_get_int (conf, key, NULL); - - pos = GTK_WIDGET (paned)->allocation.width * percent /100; - 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); - } + pos = GTK_WIDGET (paned)->allocation.width * percent /100; + gtk_paned_set_position (paned, pos); g_free (key); return TRUE;