aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-searchbar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 11:40:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 19:12:52 +0800
commit1e663aa13266cad55e5019c03e768a38955166eb (patch)
tree6d7a3e20d3a24f004d0db4ab1c06d8a768b2f112 /shell/e-shell-searchbar.c
parent3f58ba3d833953c29bb6aa5e1834e2f367f15202 (diff)
downloadgsoc2013-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-searchbar.c')
-rw-r--r--shell/e-shell-searchbar.c56
1 files changed, 33 insertions, 23 deletions
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c
index ce433592b4..6597eb0597 100644
--- a/shell/e-shell-searchbar.c
+++ b/shell/e-shell-searchbar.c
@@ -31,7 +31,6 @@
#include <glib/gi18n-lib.h>
#include "e-util/e-util.h"
-#include "e-util/e-binding.h"
#include "e-util/e-extensible.h"
#include "widgets/misc/e-action-combo-box.h"
#include "widgets/misc/e-hinted-entry.h"
@@ -706,27 +705,33 @@ shell_searchbar_constructed (GObject *object)
action = E_SHELL_WINDOW_ACTION_SEARCH_CLEAR (shell_window);
- e_binding_new (
+ g_object_bind_property (
action, "sensitive",
- widget, "secondary-icon-sensitive");
- e_binding_new (
+ widget, "secondary-icon-sensitive",
+ G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
action, "stock-id",
- widget, "secondary-icon-stock");
- e_binding_new (
+ widget, "secondary-icon-stock",
+ G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
action, "tooltip",
- widget, "secondary-icon-tooltip-text");
+ widget, "secondary-icon-tooltip-text",
+ G_BINDING_SYNC_CREATE);
action = E_SHELL_WINDOW_ACTION_SEARCH_OPTIONS (shell_window);
- e_binding_new (
+ g_object_bind_property (
action, "sensitive",
- widget, "primary-icon-sensitive");
- e_binding_new (
+ widget, "primary-icon-sensitive",
+ G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
action, "stock-id",
- widget, "primary-icon-stock");
- e_binding_new (
+ widget, "primary-icon-stock",
+ G_BINDING_SYNC_CREATE);
+ g_object_bind_property (
action, "tooltip",
- widget, "primary-icon-tooltip-text");
+ widget, "primary-icon-tooltip-text",
+ G_BINDING_SYNC_CREATE);
widget = GTK_WIDGET (searchbar);
gtk_size_group_add_widget (size_group, widget);
@@ -919,9 +924,10 @@ e_shell_searchbar_init (EShellSearchbar *searchbar)
widget = gtk_hbox_new (FALSE, 3);
gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
- e_binding_new (
+ g_object_bind_property (
searchbar, "filter-visible",
- widget, "visible");
+ widget, "visible",
+ G_BINDING_SYNC_CREATE);
box = GTK_BOX (widget);
@@ -933,9 +939,10 @@ e_shell_searchbar_init (EShellSearchbar *searchbar)
gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
- e_binding_new (
+ g_object_bind_property (
searchbar, "labels-visible",
- widget, "visible");
+ widget, "visible",
+ G_BINDING_SYNC_CREATE);
label = GTK_LABEL (widget);
@@ -952,9 +959,10 @@ e_shell_searchbar_init (EShellSearchbar *searchbar)
widget = gtk_hbox_new (FALSE, 3);
gtk_box_pack_start (box, widget, TRUE, TRUE, 0);
- e_binding_new (
+ g_object_bind_property (
searchbar, "search-visible",
- widget, "visible");
+ widget, "visible",
+ G_BINDING_SYNC_CREATE);
box = GTK_BOX (widget);
@@ -964,9 +972,10 @@ e_shell_searchbar_init (EShellSearchbar *searchbar)
gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
- e_binding_new (
+ g_object_bind_property (
searchbar, "labels-visible",
- widget, "visible");
+ widget, "visible",
+ G_BINDING_SYNC_CREATE);
label = GTK_LABEL (widget);
@@ -1013,9 +1022,10 @@ e_shell_searchbar_init (EShellSearchbar *searchbar)
widget = gtk_hbox_new (FALSE, 3);
gtk_box_pack_start (box, widget, FALSE, FALSE, 0);
- e_binding_new (
+ g_object_bind_property (
searchbar, "scope-visible",
- widget, "visible");
+ widget, "visible",
+ G_BINDING_SYNC_CREATE);
box = GTK_BOX (widget);