aboutsummaryrefslogtreecommitdiffstats
path: root/modules
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
parent6b2a55be48922c9fe5c94d654a4d463f23a428f2 (diff)
downloadgsoc2013-evolution-8962868ff902e58456c545478e62796029d1fe5c.tar.gz
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')
-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
-rw-r--r--modules/calendar/e-cal-shell-content.c4
-rw-r--r--modules/calendar/e-cal-shell-settings.c36
-rw-r--r--modules/calendar/e-cal-shell-sidebar.c8
-rw-r--r--modules/calendar/e-cal-shell-view-private.c4
-rw-r--r--modules/calendar/e-memo-shell-content.c8
-rw-r--r--modules/calendar/e-memo-shell-view-actions.c8
-rw-r--r--modules/calendar/e-task-shell-content.c8
-rw-r--r--modules/calendar/e-task-shell-view-actions.c8
-rw-r--r--modules/calendar/e-task-shell-view-private.c4
-rw-r--r--modules/mail/e-mail-shell-backend.c12
-rw-r--r--modules/mail/e-mail-shell-content.c8
-rw-r--r--modules/mail/e-mail-shell-sidebar.c4
-rw-r--r--modules/mail/e-mail-shell-view-actions.c40
-rw-r--r--modules/mail/em-composer-prefs.c68
-rw-r--r--modules/mail/em-mailer-prefs.c128
18 files changed, 184 insertions, 184 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
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c
index e199f0524d..8821a7fe07 100644
--- a/modules/calendar/e-cal-shell-content.c
+++ b/modules/calendar/e-cal-shell-content.c
@@ -386,8 +386,8 @@ cal_shell_content_constructed (GObject *object)
}
e_binding_new (
- G_OBJECT (priv->calendar), "view",
- G_OBJECT (priv->notebook), "page");
+ priv->calendar, "view",
+ priv->notebook, "page");
container = priv->vpaned;
diff --git a/modules/calendar/e-cal-shell-settings.c b/modules/calendar/e-cal-shell-settings.c
index 4e6939c892..3852de0a52 100644
--- a/modules/calendar/e-cal-shell-settings.c
+++ b/modules/calendar/e-cal-shell-settings.c
@@ -607,8 +607,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-timezone-string",
- G_OBJECT (shell_settings), "cal-timezone",
+ shell_settings, "cal-timezone-string",
+ shell_settings, "cal-timezone",
transform_string_to_icaltimezone,
transform_icaltimezone_to_string,
(GDestroyNotify) g_object_unref,
@@ -625,8 +625,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-week-start-day-gconf",
- G_OBJECT (shell_settings), "cal-week-start-day",
+ shell_settings, "cal-week-start-day-gconf",
+ shell_settings, "cal-week-start-day",
transform_weekdays_gconf_to_evolution,
transform_weekdays_evolution_to_gconf,
(GDestroyNotify) NULL, NULL);
@@ -643,8 +643,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-sunday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-sunday",
transform_working_days_bitset_to_sunday,
transform_working_days_sunday_to_bitset,
(GDestroyNotify) NULL, shell_settings);
@@ -658,8 +658,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-monday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-monday",
transform_working_days_bitset_to_monday,
transform_working_days_monday_to_bitset,
(GDestroyNotify) NULL, shell_settings);
@@ -673,8 +673,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-tuesday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-tuesday",
transform_working_days_bitset_to_tuesday,
transform_working_days_tuesday_to_bitset,
(GDestroyNotify) NULL, shell_settings);
@@ -688,8 +688,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-wednesday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-wednesday",
transform_working_days_bitset_to_wednesday,
transform_working_days_wednesday_to_bitset,
(GDestroyNotify) NULL, shell_settings);
@@ -703,8 +703,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-thursday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-thursday",
transform_working_days_bitset_to_thursday,
transform_working_days_thursday_to_bitset,
(GDestroyNotify) NULL, shell_settings);
@@ -718,8 +718,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-friday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-friday",
transform_working_days_bitset_to_friday,
transform_working_days_friday_to_bitset,
(GDestroyNotify) NULL, shell_settings);
@@ -733,8 +733,8 @@ e_cal_shell_backend_init_settings (EShell *shell)
G_PARAM_READWRITE));
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "cal-working-days-bitset",
- G_OBJECT (shell_settings), "cal-working-days-saturday",
+ shell_settings, "cal-working-days-bitset",
+ shell_settings, "cal-working-days-saturday",
transform_working_days_bitset_to_saturday,
transform_working_days_saturday_to_bitset,
(GDestroyNotify) g_object_unref,
diff --git a/modules/calendar/e-cal-shell-sidebar.c b/modules/calendar/e-cal-shell-sidebar.c
index 05b3a47d72..cb09c93ef1 100644
--- a/modules/calendar/e-cal-shell-sidebar.c
+++ b/modules/calendar/e-cal-shell-sidebar.c
@@ -440,12 +440,12 @@ cal_shell_sidebar_constructed (GObject *object)
gtk_widget_show (widget);
e_binding_new (
- G_OBJECT (shell_settings), "cal-show-week-numbers",
- G_OBJECT (calitem), "show-week-numbers");
+ shell_settings, "cal-show-week-numbers",
+ calitem, "show-week-numbers");
e_binding_new (
- G_OBJECT (shell_settings), "cal-week-start-day",
- G_OBJECT (calitem), "week-start-day");
+ shell_settings, "cal-week-start-day",
+ calitem, "week-start-day");
/* Restore the selector state from the last session. */
diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c
index 1b9c8d367a..3fe59945f5 100644
--- a/modules/calendar/e-cal-shell-view-private.c
+++ b/modules/calendar/e-cal-shell-view-private.c
@@ -539,8 +539,8 @@ e_cal_shell_view_private_constructed (ECalShellView *cal_shell_view)
/* Keep the toolbar view buttons in sync with the calendar. */
e_mutual_binding_new (
- G_OBJECT (calendar), "view",
- G_OBJECT (ACTION (CALENDAR_VIEW_DAY)), "current-value");
+ calendar, "view",
+ ACTION (CALENDAR_VIEW_DAY), "current-value");
}
void
diff --git a/modules/calendar/e-memo-shell-content.c b/modules/calendar/e-memo-shell-content.c
index 2f4e436056..027beec1cd 100644
--- a/modules/calendar/e-memo-shell-content.c
+++ b/modules/calendar/e-memo-shell-content.c
@@ -426,8 +426,8 @@ memo_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;
@@ -446,8 +446,8 @@ memo_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/calendar/e-memo-shell-view-actions.c b/modules/calendar/e-memo-shell-view-actions.c
index 8604d8e2c5..991c99b5d1 100644
--- a/modules/calendar/e-memo-shell-view-actions.c
+++ b/modules/calendar/e-memo-shell-view-actions.c
@@ -935,12 +935,12 @@ e_memo_shell_view_actions_init (EMemoShellView *memo_shell_view)
G_CALLBACK (action_search_execute_cb), memo_shell_view);
e_binding_new (
- G_OBJECT (ACTION (MEMO_PREVIEW)), "active",
- G_OBJECT (ACTION (MEMO_VIEW_CLASSIC)), "sensitive");
+ ACTION (MEMO_PREVIEW), "active",
+ ACTION (MEMO_VIEW_CLASSIC), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (MEMO_PREVIEW)), "active",
- G_OBJECT (ACTION (MEMO_VIEW_VERTICAL)), "sensitive");
+ ACTION (MEMO_PREVIEW), "active",
+ ACTION (MEMO_VIEW_VERTICAL), "sensitive");
}
void
diff --git a/modules/calendar/e-task-shell-content.c b/modules/calendar/e-task-shell-content.c
index a095003978..f78f142d60 100644
--- a/modules/calendar/e-task-shell-content.c
+++ b/modules/calendar/e-task-shell-content.c
@@ -424,8 +424,8 @@ task_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;
@@ -444,8 +444,8 @@ task_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/calendar/e-task-shell-view-actions.c b/modules/calendar/e-task-shell-view-actions.c
index b08f9656c9..7b70ec1902 100644
--- a/modules/calendar/e-task-shell-view-actions.c
+++ b/modules/calendar/e-task-shell-view-actions.c
@@ -1135,12 +1135,12 @@ e_task_shell_view_actions_init (ETaskShellView *task_shell_view)
G_CALLBACK (action_search_execute_cb), task_shell_view);
e_binding_new (
- G_OBJECT (ACTION (TASK_PREVIEW)), "active",
- G_OBJECT (ACTION (TASK_VIEW_CLASSIC)), "sensitive");
+ ACTION (TASK_PREVIEW), "active",
+ ACTION (TASK_VIEW_CLASSIC), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (TASK_PREVIEW)), "active",
- G_OBJECT (ACTION (TASK_VIEW_VERTICAL)), "sensitive");
+ ACTION (TASK_PREVIEW), "active",
+ ACTION (TASK_VIEW_VERTICAL), "sensitive");
}
void
diff --git a/modules/calendar/e-task-shell-view-private.c b/modules/calendar/e-task-shell-view-private.c
index a0ca5ee978..3b49ddbc5b 100644
--- a/modules/calendar/e-task-shell-view-private.c
+++ b/modules/calendar/e-task-shell-view-private.c
@@ -333,8 +333,8 @@ e_task_shell_view_private_constructed (ETaskShellView *task_shell_view)
/* Listen for configuration changes. */
e_mutual_binding_new (
- G_OBJECT (shell_settings), "cal-confirm-purge",
- G_OBJECT (task_shell_view), "confirm-purge");
+ shell_settings, "cal-confirm-purge",
+ task_shell_view, "confirm-purge");
/* Hide Completed Tasks (enable/units/value) */
g_signal_connect_swapped (
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index fd99edcfa0..681fd68a74 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -728,16 +728,16 @@ mail_shell_backend_window_created_cb (EShell *shell,
GList *spell_languages;
e_binding_new (
- G_OBJECT (shell_settings), "composer-inline-spelling",
- G_OBJECT (window), "inline-spelling");
+ shell_settings, "composer-inline-spelling",
+ window, "inline-spelling");
e_binding_new (
- G_OBJECT (shell_settings), "composer-magic-links",
- G_OBJECT (window), "magic-links");
+ shell_settings, "composer-magic-links",
+ window, "magic-links");
e_binding_new (
- G_OBJECT (shell_settings), "composer-magic-smileys",
- G_OBJECT (window), "magic-smileys");
+ shell_settings, "composer-magic-smileys",
+ window, "magic-smileys");
spell_languages = e_load_spell_languages ();
gtkhtml_editor_set_spell_languages (
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index 0f4a9335a1..ac740fb6c5 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -466,8 +466,8 @@ mail_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;
@@ -481,8 +481,8 @@ mail_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/mail/e-mail-shell-sidebar.c b/modules/mail/e-mail-shell-sidebar.c
index 0f8e4f5783..b45e30ddee 100644
--- a/modules/mail/e-mail-shell-sidebar.c
+++ b/modules/mail/e-mail-shell-sidebar.c
@@ -458,8 +458,8 @@ mail_shell_sidebar_constructed (GObject *object)
gtk_widget_show (widget);
e_binding_new (
- G_OBJECT (shell_settings), "mail-side-bar-search",
- G_OBJECT (widget), "enable-search");
+ shell_settings, "mail-side-bar-search",
+ widget, "enable-search");
tree_view = GTK_TREE_VIEW (mail_shell_sidebar->priv->folder_tree);
selection = gtk_tree_view_get_selection (tree_view);
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 11cedfbb3d..a16c752e84 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -1507,8 +1507,6 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
GtkRadioAction *radio_action;
GConfBridge *bridge;
GObject *object;
- GObject *src_object;
- GObject *dst_object;
const gchar *key;
g_return_if_fail (E_IS_MAIL_SHELL_VIEW (mail_shell_view));
@@ -1565,37 +1563,39 @@ e_mail_shell_view_actions_init (EMailShellView *mail_shell_view)
/* Fine tuning. */
- src_object = G_OBJECT (ACTION (MAIL_THREADS_GROUP_BY));
-
- dst_object = G_OBJECT (ACTION (MAIL_FOLDER_SELECT_THREAD));
- e_binding_new (src_object, "active", dst_object, "sensitive");
+ e_binding_new (
+ ACTION (MAIL_THREADS_GROUP_BY), "active",
+ ACTION (MAIL_FOLDER_SELECT_THREAD), "sensitive");
- dst_object = G_OBJECT (ACTION (MAIL_FOLDER_SELECT_SUBTHREAD));
- e_binding_new (src_object, "active", dst_object, "sensitive");
+ e_binding_new (
+ ACTION (MAIL_THREADS_GROUP_BY), "active",
+ ACTION (MAIL_FOLDER_SELECT_SUBTHREAD), "sensitive");
- dst_object = G_OBJECT (ACTION (MAIL_THREADS_COLLAPSE_ALL));
- e_binding_new (src_object, "active", dst_object, "sensitive");
+ e_binding_new (
+ ACTION (MAIL_THREADS_GROUP_BY), "active",
+ ACTION (MAIL_THREADS_COLLAPSE_ALL), "sensitive");
- dst_object = G_OBJECT (ACTION (MAIL_THREADS_EXPAND_ALL));
- e_binding_new (src_object, "active", dst_object, "sensitive");
+ e_binding_new (
+ ACTION (MAIL_THREADS_GROUP_BY), "active",
+ ACTION (MAIL_THREADS_EXPAND_ALL), "sensitive");
e_mutual_binding_new (
- G_OBJECT (ACTION (MAIL_PREVIEW)), "active",
- G_OBJECT (shell_content), "preview-visible");
+ ACTION (MAIL_PREVIEW), "active",
+ shell_content, "preview-visible");
e_binding_new (
- G_OBJECT (ACTION (MAIL_PREVIEW)), "active",
- G_OBJECT (ACTION (MAIL_VIEW_CLASSIC)), "sensitive");
+ ACTION (MAIL_PREVIEW), "active",
+ ACTION (MAIL_VIEW_CLASSIC), "sensitive");
e_binding_new (
- G_OBJECT (ACTION (MAIL_PREVIEW)), "active",
- G_OBJECT (ACTION (MAIL_VIEW_VERTICAL)), "sensitive");
+ ACTION (MAIL_PREVIEW), "active",
+ ACTION (MAIL_VIEW_VERTICAL), "sensitive");
/* XXX The boolean sense of the GConf key is the inverse of
* the menu item, so we have to maintain two properties. */
e_mutual_binding_new_with_negation (
- G_OBJECT (shell_content), "show-deleted",
- G_OBJECT (ACTION (MAIL_HIDE_DELETED)), "active");
+ shell_content, "show-deleted",
+ ACTION (MAIL_HIDE_DELETED), "active");
g_signal_connect (
ACTION (GAL_SAVE_CUSTOM_VIEW), "activate",
diff --git a/modules/mail/em-composer-prefs.c b/modules/mail/em-composer-prefs.c
index 4c29125c0b..6ca42321d9 100644
--- a/modules/mail/em-composer-prefs.c
+++ b/modules/mail/em-composer-prefs.c
@@ -405,56 +405,56 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
/* Default Behavior */
widget = glade_xml_get_widget (gui, "chkSendHTML");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-format-html",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-format-html",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkPromptEmptySubject");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-prompt-empty-subject",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-prompt-empty-subject",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkPromptBccOnly");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-prompt-only-bcc",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-prompt-only-bcc",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkAutoSmileys");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-magic-smileys",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-magic-smileys",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkRequestReceipt");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-request-receipt",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-request-receipt",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkReplyStartBottom");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-reply-start-bottom",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-reply-start-bottom",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkOutlookFilenames");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-outlook-filenames",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-outlook-filenames",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkTopSignature");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-top-signature",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-top-signature",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkEnableSpellChecking");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-inline-spelling",
- G_OBJECT (widget), "active");
+ shell_settings, "composer-inline-spelling",
+ widget, "active");
widget = e_charset_combo_box_new ();
container = glade_xml_get_widget (gui, "hboxComposerCharset");
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
e_mutual_binding_new (
- G_OBJECT (shell_settings), "composer-charset",
- G_OBJECT (widget), "charset");
+ shell_settings, "composer-charset",
+ widget, "charset");
/* Spell Checking */
widget = glade_xml_get_widget (gui, "listSpellCheckLanguage");
@@ -487,8 +487,8 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
widget = glade_xml_get_widget (gui, "colorButtonSpellCheckColor");
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "composer-spell-color",
- G_OBJECT (widget), "color",
+ shell_settings, "composer-spell-color",
+ widget, "color",
transform_string_to_color,
transform_color_to_string,
NULL, NULL);
@@ -498,13 +498,13 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
/* Forwards and Replies */
widget = glade_xml_get_widget (gui, "comboboxForwardStyle");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-forward-style",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-forward-style",
+ widget, "active");
widget = glade_xml_get_widget (gui, "comboboxReplyStyle");
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "mail-reply-style",
- G_OBJECT (widget), "active",
+ shell_settings, "mail-reply-style",
+ widget, "active",
transform_old_to_new_reply_style,
transform_new_to_old_reply_style,
NULL, NULL);
@@ -523,12 +523,12 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
G_CALLBACK (e_shell_watch_window), shell);
e_binding_new (
- G_OBJECT (shell_settings), "composer-format-html",
- G_OBJECT (widget), "prefer-html");
+ shell_settings, "composer-format-html",
+ widget, "prefer-html");
e_binding_new_with_negation (
- G_OBJECT (shell_settings), "disable-command-line",
- G_OBJECT (widget), "allow-scripts");
+ shell_settings, "disable-command-line",
+ widget, "allow-scripts");
signature_tree_view = e_signature_manager_get_tree_view (
E_SIGNATURE_MANAGER (widget));
@@ -539,12 +539,12 @@ em_composer_prefs_construct (EMComposerPrefs *prefs,
gtk_widget_show (widget);
e_binding_new_with_negation (
- G_OBJECT (shell_settings), "disable-command-line",
- G_OBJECT (widget), "allow-scripts");
+ shell_settings, "disable-command-line",
+ widget, "allow-scripts");
e_binding_new (
- G_OBJECT (signature_tree_view), "selected",
- G_OBJECT (widget), "signature");
+ signature_tree_view, "selected",
+ widget, "signature");
/* get our toplevel widget */
target = em_config_target_new_prefs (ec, client);
diff --git a/modules/mail/em-mailer-prefs.c b/modules/mail/em-mailer-prefs.c
index 621dae4ce5..b1434665dd 100644
--- a/modules/mail/em-mailer-prefs.c
+++ b/modules/mail/em-mailer-prefs.c
@@ -854,8 +854,8 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
/* Message Display */
widget = glade_xml_get_widget (gui, "chkMarkTimeout");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-mark-seen",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-mark-seen",
+ widget, "active");
/* The "mark seen" timeout requires special transform functions
* because we display the timeout value to the user in seconds
@@ -863,113 +863,113 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
widget = glade_xml_get_widget (gui, "spinMarkTimeout");
prefs->timeout = GTK_SPIN_BUTTON (widget);
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-mark-seen",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-mark-seen",
+ widget, "sensitive");
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "mail-mark-seen-timeout",
- G_OBJECT (widget), "value",
+ shell_settings, "mail-mark-seen-timeout",
+ widget, "value",
mark_seen_timeout_transform,
mark_seen_timeout_reverse_transform,
NULL, NULL);
widget = glade_xml_get_widget (gui, "mlimit_checkbutton");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-force-message-limit",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-force-message-limit",
+ widget, "active");
widget = glade_xml_get_widget (gui, "mlimit_spin");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-force-message-limit",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-force-message-limit",
+ widget, "sensitive");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-message-text-part-limit",
- G_OBJECT (widget), "value");
+ shell_settings, "mail-message-text-part-limit",
+ widget, "value");
widget = glade_xml_get_widget (gui, "address_checkbox");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-address-compress",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-address-compress",
+ widget, "active");
widget = glade_xml_get_widget (gui, "address_spin");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-address-compress",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-address-compress",
+ widget, "sensitive");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-address-count",
- G_OBJECT (widget), "value");
+ shell_settings, "mail-address-count",
+ widget, "value");
widget = glade_xml_get_widget (gui, "magic_spacebar_checkbox");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-magic-spacebar",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-magic-spacebar",
+ widget, "active");
widget = e_charset_combo_box_new ();
container = glade_xml_get_widget (gui, "hboxDefaultCharset");
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
gtk_widget_show (widget);
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-charset",
- G_OBJECT (widget), "charset");
+ shell_settings, "mail-charset",
+ widget, "charset");
widget = glade_xml_get_widget (gui, "chkHighlightCitations");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-mark-citations",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-mark-citations",
+ widget, "active");
widget = glade_xml_get_widget (gui, "colorButtonHighlightCitations");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-mark-citations",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-mark-citations",
+ widget, "sensitive");
e_mutual_binding_new_full (
- G_OBJECT (shell_settings), "mail-citation-color",
- G_OBJECT (widget), "color",
+ shell_settings, "mail-citation-color",
+ widget, "color",
e_binding_transform_string_to_color,
e_binding_transform_color_to_string,
NULL, NULL);
widget = glade_xml_get_widget (gui, "chkEnableSearchFolders");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-enable-search-folders",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-enable-search-folders",
+ widget, "active");
/* Deleting Mail */
widget = glade_xml_get_widget (gui, "chkEmptyTrashOnExit");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-empty-trash-on-exit",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-empty-trash-on-exit",
+ widget, "active");
widget = glade_xml_get_widget (gui, "comboboxEmptyTrashDays");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-empty-trash-on-exit",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-empty-trash-on-exit",
+ widget, "sensitive");
emmp_empty_trash_init (prefs, GTK_COMBO_BOX (widget));
widget = glade_xml_get_widget (gui, "chkConfirmExpunge");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-confirm-expunge",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-confirm-expunge",
+ widget, "active");
/* Mail Fonts */
widget = glade_xml_get_widget (gui, "radFontUseSame");
e_mutual_binding_new_with_negation (
- G_OBJECT (shell_settings), "mail-use-custom-fonts",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-use-custom-fonts",
+ widget, "active");
widget = glade_xml_get_widget (gui, "FontFixed");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-font-monospace",
- G_OBJECT (widget), "font-name");
+ shell_settings, "mail-font-monospace",
+ widget, "font-name");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-use-custom-fonts",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-use-custom-fonts",
+ widget, "sensitive");
widget = glade_xml_get_widget (gui, "FontVariable");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-font-variable",
- G_OBJECT (widget), "font-name");
+ shell_settings, "mail-font-variable",
+ widget, "font-name");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-use-custom-fonts",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-use-custom-fonts",
+ widget, "sensitive");
/* HTML Mail tab */
@@ -998,13 +998,13 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
widget = glade_xml_get_widget (gui, "chkShowAnimatedImages");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-show-animated-images",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-show-animated-images",
+ widget, "active");
widget = glade_xml_get_widget (gui, "chkPromptWantHTML");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-confirm-unwanted-html",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-confirm-unwanted-html",
+ widget, "active");
container = glade_xml_get_widget (gui, "labels-alignment");
widget = e_mail_label_manager_new ();
@@ -1012,24 +1012,24 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
gtk_widget_show (widget);
e_binding_new (
- G_OBJECT (shell_settings), "mail-label-list-store",
- G_OBJECT (widget), "list-store");
+ shell_settings, "mail-label-list-store",
+ widget, "list-store");
/* headers */
locked = !gconf_client_key_is_writable (prefs->gconf, "/apps/evolution/mail/display/headers", NULL);
widget = glade_xml_get_widget (gui, "photo_show");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-show-sender-photo",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-show-sender-photo",
+ widget, "active");
widget = glade_xml_get_widget (gui, "photo_local");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-show-sender-photo",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-show-sender-photo",
+ widget, "sensitive");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-only-local-photos",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-only-local-photos",
+ widget, "active");
/* always de-sensitised until the user types something in the entry */
prefs->add_header = GTK_BUTTON (glade_xml_get_widget (gui, "cmdHeadersAdd"));
@@ -1143,18 +1143,18 @@ em_mailer_prefs_construct (EMMailerPrefs *prefs,
/* Junk prefs */
widget = glade_xml_get_widget (gui, "chkCheckIncomingMail");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-check-for-junk",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-check-for-junk",
+ widget, "active");
widget = glade_xml_get_widget (gui, "junk_empty_check");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-empty-junk-on-exit",
- G_OBJECT (widget), "active");
+ shell_settings, "mail-empty-junk-on-exit",
+ widget, "active");
widget = glade_xml_get_widget (gui, "junk_empty_combobox");
e_mutual_binding_new (
- G_OBJECT (shell_settings), "mail-empty-junk-on-exit",
- G_OBJECT (widget), "sensitive");
+ shell_settings, "mail-empty-junk-on-exit",
+ widget, "sensitive");
emmp_empty_junk_init (prefs, GTK_COMBO_BOX (widget));
prefs->default_junk_plugin = GTK_COMBO_BOX (glade_xml_get_widget (gui, "default_junk_plugin"));