diff options
Diffstat (limited to 'widgets/misc/e-attachment-paned.c')
-rw-r--r-- | widgets/misc/e-attachment-paned.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c index 9502f41296..a09fef0a66 100644 --- a/widgets/misc/e-attachment-paned.c +++ b/widgets/misc/e-attachment-paned.c @@ -22,7 +22,10 @@ #include "e-attachment-paned.h" #include <glib/gi18n.h> + #include "e-util/e-binding.h" +#include "e-util/gconf-bridge.h" + #include "e-attachment-view.h" #include "e-attachment-store.h" #include "e-attachment-icon-view.h" @@ -272,9 +275,15 @@ static void attachment_paned_constructed (GObject *object) { EAttachmentPanedPrivate *priv; + GConfBridge *bridge; + const gchar *key; priv = E_ATTACHMENT_PANED_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"); @@ -302,6 +311,11 @@ attachment_paned_constructed (GObject *object) e_mutual_binding_new ( G_OBJECT (object), "expanded", G_OBJECT (priv->notebook), "visible"); + + /* Set up property-to-GConf bindings. */ + + key = "/apps/evolution/shell/attachment_view"; + gconf_bridge_bind_property (bridge, key, object, "active-view"); } static EAttachmentViewPrivate * |