diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-14 11:40:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-14 19:12:52 +0800 |
commit | 1e663aa13266cad55e5019c03e768a38955166eb (patch) | |
tree | 6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /shell/e-shell-utils.c | |
parent | 3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff) | |
download | gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.zst gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.zip |
Replace EBinding with GBinding.
GObject now does property bindings itself.
Requires GLib >= 2.26.
Diffstat (limited to 'shell/e-shell-utils.c')
-rw-r--r-- | shell/e-shell-utils.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/shell/e-shell-utils.c b/shell/e-shell-utils.c index ee1af8e3be..9d2d4ca584 100644 --- a/shell/e-shell-utils.c +++ b/shell/e-shell-utils.c @@ -29,7 +29,6 @@ #include <glib/gi18n-lib.h> -#include "e-util/e-binding.h" #include "widgets/misc/e-import-assistant.h" /** @@ -52,9 +51,10 @@ e_shell_configure_ui_manager (EShell *shell, shell_settings = e_shell_get_shell_settings (shell); - e_binding_new ( + g_object_bind_property ( shell, "express-mode", - ui_manager, "express-mode"); + ui_manager, "express-mode", + G_BINDING_SYNC_CREATE); } /** @@ -77,13 +77,15 @@ e_shell_configure_web_view (EShell *shell, shell_settings = e_shell_get_shell_settings (shell); #ifndef G_OS_WIN32 - e_binding_new ( + g_object_bind_property ( shell_settings, "disable-printing", - web_view, "disable-printing"); + web_view, "disable-printing", + G_BINDING_SYNC_CREATE); - e_binding_new ( + g_object_bind_property ( shell_settings, "disable-save-to-disk", - web_view, "disable-save-to-disk"); + web_view, "disable-save-to-disk", + G_BINDING_SYNC_CREATE); #endif } |