diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-15 03:03:37 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-04-15 03:03:37 +0800 |
commit | 582ec45a59973e3beed7370c3476edaeb16c9eac (patch) | |
tree | 20fb87db9605a2d4b7e4ea98c3d1382273744a66 /mail | |
parent | 4279d2042844fddc4429b8690a550778740222e3 (diff) | |
download | gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.tar gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.tar.gz gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.tar.bz2 gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.tar.lz gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.tar.xz gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.tar.zst gsoc2013-evolution-582ec45a59973e3beed7370c3476edaeb16c9eac.zip |
Make the selected attachment view and file chooser folder persistent.
svn path=/branches/kill-bonobo/; revision=37523
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-attachment-bar.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c index 5323a7d359..731b52164a 100644 --- a/mail/e-mail-attachment-bar.c +++ b/mail/e-mail-attachment-bar.c @@ -22,7 +22,10 @@ #include "e-mail-attachment-bar.h" #include <glib/gi18n.h> + #include "e-util/e-binding.h" +#include "e-util/gconf-bridge.h" + #include "e-attachment-store.h" #include "e-attachment-icon-view.h" #include "e-attachment-tree-view.h" @@ -267,9 +270,15 @@ static void mail_attachment_bar_constructed (GObject *object) { EMailAttachmentBarPrivate *priv; + GConfBridge *bridge; + const gchar *key; priv = E_MAIL_ATTACHMENT_BAR_GET_PRIVATE (object); + bridge = gconf_bridge_get (); + + /* Set up property-to-property bindings. */ + e_mutual_binding_new ( G_OBJECT (object), "active-view", G_OBJECT (priv->combo_box), "active"); @@ -293,6 +302,11 @@ mail_attachment_bar_constructed (GObject *object) e_mutual_binding_new ( G_OBJECT (object), "expanded", G_OBJECT (priv->vbox), "visible"); + + /* Set up property-to-GConf bindings. */ + + key = "/apps/evolution/shell/attachment_view"; + gconf_bridge_bind_property (bridge, key, object, "active-view"); } static void |