diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-11-28 02:40:01 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-11-28 08:03:45 +0800 |
commit | f6f46ce7fc8950d10eb53e057117a146de5faddc (patch) | |
tree | 1399d1436a3991b979f3b0773e2cdcec41840383 /composer | |
parent | 15da8fa99012875735ffa3a1eb54670b6d42bea4 (diff) | |
download | gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.gz gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.tar.zst gsoc2013-evolution-f6f46ce7fc8950d10eb53e057117a146de5faddc.zip |
Use e_restore_window() and "org.gnome.evolution.window".
Apply it to all windows with persistent size and/or position.
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-msg-composer.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index b7aaf883a5..95ba249bbf 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2086,6 +2086,7 @@ msg_composer_constructed (GObject *object) gtk_window_set_title (GTK_WINDOW (composer), _("Compose Message")); gtk_window_set_icon_name (GTK_WINDOW (composer), "mail-message-new"); + gtk_window_set_default_size (GTK_WINDOW (composer), 600, 500); g_signal_connect ( object, "delete-event", @@ -2106,14 +2107,10 @@ msg_composer_constructed (GObject *object) /* Restore Persistent State */ - /* FIXME: need to bind this to GSettings */ - /* array = composer->priv->gconf_bridge_binding_ids; */ - - /* binding_id = gconf_bridge_bind_window ( */ - /* gconf_bridge_get (), */ - /* COMPOSER_GCONF_WINDOW_PREFIX, */ - /* GTK_WINDOW (composer), TRUE, FALSE); */ - /* g_array_append_val (array, binding_id); */ + e_restore_window ( + GTK_WINDOW (composer), + "/org/gnome/evolution/mail/composer-window/", + E_RESTORE_WINDOW_SIZE); /* Honor User Preferences */ |