aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-02 09:12:44 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-02 09:12:44 +0800
commit8962868ff902e58456c545478e62796029d1fe5c (patch)
treed43efa77beba51f716a259a3538dd55a38711923 /modules/addressbook
parent6b2a55be48922c9fe5c94d654a4d463f23a428f2 (diff)
downloadgsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.gz
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.bz2
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.lz
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.xz
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.zst
gsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.zip
Relax the EBinding API to reduce GObject casting.
Also make it more fault-tolerant by warning about non-existent property names instead of just crashing.
Diffstat (limited to 'modules/addressbook')
-rw-r--r--modules/addressbook/autocompletion-config.c4
-rw-r--r--modules/addressbook/e-book-shell-content.c8
-rw-r--r--modules/addressbook/e-book-shell-view-actions.c8
3 files changed, 10 insertions, 10 deletions
diff --git a/modules/addressbook/autocompletion-config.c b/modules/addressbook/autocompletion-config.c
index eb0c802196..7afc18d382 100644
--- a/modules/addressbook/autocompletion-config.c
+++ b/modules/addressbook/autocompletion-config.c
@@ -164,8 +164,8 @@ autocompletion_config_new (EShell *shell)
widget = gtk_check_button_new_with_mnemonic (
_("Always _show address of the autocompleted contact"));
e_mutual_binding_new (
- G_OBJECT (shell_settings), "book-completion-show-address",
- G_OBJECT (widget), "active");
+ shell_settings, "book-completion-show-address",
+ widget, "active");
gtk_box_pack_start (GTK_BOX (itembox), widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
diff --git a/modules/addressbook/e-book-shell-content.c b/modules/addressbook/e-book-shell-content.c
index f138da3d00..898bd2df39 100644
--- a/modules/addressbook/e-book-shell-content.c
+++ b/modules/addressbook/e-book-shell-content.c
@@ -199,8 +199,8 @@ book_shell_content_constructed (GObject *object)
gtk_widget_show (widget);
e_binding_new (
- G_OBJECT (object), "orientation",
- G_OBJECT (widget), "orientation");
+ object, "orientation",
+ widget, "orientation");
container = widget;
@@ -221,8 +221,8 @@ book_shell_content_constructed (GObject *object)
gtk_widget_show (widget);
e_binding_new (
- G_OBJECT (object), "preview-visible",
- G_OBJECT (widget), "visible");
+ object, "preview-visible",
+ widget, "visible");
container = widget;
diff --git a/modules/addressbook/e-book-shell-view-actions.c b/modules/addressbook/e-book-shell-view-actions.c
index 5daf7e51df..bbe613786f 100644
--- a/modules/addressbook/e-book-shell-view-actions.c
+++ b/modules/addressbook/e-book-shell-view-actions.c
@@ -1009,12 +1009,12 @@ e_book_shell_view_actions_init (EBookShellView *book_shell_view)
G_CALLBACK (action_search_execute_cb), book_shell_view);
e_binding_new (
- G_OBJECT (ACTION (CONTACT_PREVIEW)), "active",
- G_OBJECT (ACTION (CONTACT_VIEW_CLASSIC)), "sensitive");
+ ACTION (CONTACT_PREVIEW), "active",
+ ACTION (CONTACT_VIEW_CLASSIC), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (CONTACT_PREVIEW)), "active",
- G_OBJECT (ACTION (CONTACT_VIEW_VERTICAL)), "sensitive");
+ ACTION (CONTACT_PREVIEW), "active",
+ ACTION (CONTACT_VIEW_VERTICAL), "sensitive");
}
void