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-sidebar.c | |
parent | 3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff) | |
download | gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.gz gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.bz2 gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.lz gsoc2013-evolution-1e663aa13266cad55e5019c03e768a38955166eb.tar.xz 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-sidebar.c')
-rw-r--r-- | shell/e-shell-sidebar.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/shell/e-shell-sidebar.c b/shell/e-shell-sidebar.c index 4e4ace07c9..b56e4c061d 100644 --- a/shell/e-shell-sidebar.c +++ b/shell/e-shell-sidebar.c @@ -27,7 +27,6 @@ #include "e-shell-sidebar.h" -#include <e-util/e-binding.h> #include <e-util/e-extensible.h> #include <e-util/e-unicode.h> #include <shell/e-shell-view.h> @@ -414,7 +413,10 @@ e_shell_sidebar_init (EShellSidebar *shell_sidebar) gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0); gtk_widget_show (widget); - e_binding_new (shell_sidebar, "icon-name", widget, "icon-name"); + g_object_bind_property ( + shell_sidebar, "icon-name", + widget, "icon-name", + G_BINDING_SYNC_CREATE); widget = gtk_label_new (NULL); gtk_label_set_ellipsize (GTK_LABEL (widget), PANGO_ELLIPSIZE_END); @@ -428,7 +430,10 @@ e_shell_sidebar_init (EShellSidebar *shell_sidebar) gtk_label_set_attributes (GTK_LABEL (widget), attribute_list); pango_attr_list_unref (attribute_list); - e_binding_new (shell_sidebar, "primary-text", widget, "label"); + g_object_bind_property ( + shell_sidebar, "primary-text", + widget, "label", + G_BINDING_SYNC_CREATE); widget = gtk_label_new (NULL); gtk_misc_set_alignment (GTK_MISC (widget), 1.0, 0.5); @@ -441,7 +446,10 @@ e_shell_sidebar_init (EShellSidebar *shell_sidebar) gtk_label_set_attributes (GTK_LABEL (widget), attribute_list); pango_attr_list_unref (attribute_list); - e_binding_new (shell_sidebar, "secondary-text", widget, "label"); + g_object_bind_property ( + shell_sidebar, "secondary-text", + widget, "label", + G_BINDING_SYNC_CREATE); } /** |