From 63c26d5712c807f65db9c1b0c98ca06aad76171a Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 27 Mar 2011 17:58:32 -0400 Subject: Miscellaneous GtkAction-related cleanups. Prefer the newer GtkAction "set" functions over g_object_set(). --- modules/calendar/e-cal-shell-view-actions.c | 14 +++++++------- modules/calendar/e-memo-shell-view.c | 2 +- modules/calendar/e-task-shell-view.c | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'modules/calendar') diff --git a/modules/calendar/e-cal-shell-view-actions.c b/modules/calendar/e-cal-shell-view-actions.c index ba72a41748..ceeab0b8c3 100644 --- a/modules/calendar/e-cal-shell-view-actions.c +++ b/modules/calendar/e-cal-shell-view-actions.c @@ -1808,25 +1808,25 @@ e_cal_shell_view_actions_init (ECalShellView *cal_shell_view) /* Fine tuning. */ action = ACTION (CALENDAR_GO_TODAY); - g_object_set (action, "short-label", _("Today"), NULL); + gtk_action_set_short_label (action, _("Today")); action = ACTION (CALENDAR_JUMP_TO); - g_object_set (action, "short-label", _("Go To"), NULL); + gtk_action_set_short_label (action, _("Go To")); action = ACTION (CALENDAR_VIEW_DAY); - g_object_set (action, "is-important", TRUE, NULL); + gtk_action_set_is_important (action, TRUE); action = ACTION (CALENDAR_VIEW_LIST); - g_object_set (action, "is-important", TRUE, NULL); + gtk_action_set_is_important (action, TRUE); action = ACTION (CALENDAR_VIEW_MONTH); - g_object_set (action, "is-important", TRUE, NULL); + gtk_action_set_is_important (action, TRUE); action = ACTION (CALENDAR_VIEW_WEEK); - g_object_set (action, "is-important", TRUE, NULL); + gtk_action_set_is_important (action, TRUE); action = ACTION (CALENDAR_VIEW_WORKWEEK); - g_object_set (action, "is-important", TRUE, NULL); + gtk_action_set_is_important (action, TRUE); g_signal_connect ( ACTION (GAL_SAVE_CUSTOM_VIEW), "activate", diff --git a/modules/calendar/e-memo-shell-view.c b/modules/calendar/e-memo-shell-view.c index d0986e7a17..c6d620dd0d 100644 --- a/modules/calendar/e-memo-shell-view.c +++ b/modules/calendar/e-memo-shell-view.c @@ -223,7 +223,7 @@ memo_shell_view_update_actions (EShellView *shell_view) label = _("Delete Memos"); else label = _("Delete Memo"); - g_object_set (action, "label", label, NULL); + gtk_action_set_label (action, label); action = ACTION (MEMO_FIND); sensitive = single_memo_selected; diff --git a/modules/calendar/e-task-shell-view.c b/modules/calendar/e-task-shell-view.c index 76410b3184..fd4f762bc8 100644 --- a/modules/calendar/e-task-shell-view.c +++ b/modules/calendar/e-task-shell-view.c @@ -358,7 +358,7 @@ task_shell_view_update_actions (EShellView *shell_view) label = _("Delete Tasks"); else label = _("Delete Task"); - g_object_set (action, "label", label, NULL); + gtk_action_set_label (action, label); action = ACTION (TASK_FIND); sensitive = single_task_selected; -- cgit v1.2.3