aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar/e-cal-shell-view-actions.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-03-28 05:58:32 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-03-28 06:38:39 +0800
commit63c26d5712c807f65db9c1b0c98ca06aad76171a (patch)
treeec87dbb63434333bab6d98f73a9e266d4b56777a /modules/calendar/e-cal-shell-view-actions.c
parentba6a2343869f6be82f44261f183cd6925659d5ee (diff)
downloadgsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.tar
gsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.tar.gz
gsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.tar.bz2
gsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.tar.lz
gsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.tar.xz
gsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.tar.zst
gsoc2013-evolution-63c26d5712c807f65db9c1b0c98ca06aad76171a.zip
Miscellaneous GtkAction-related cleanups.
Prefer the newer GtkAction "set" functions over g_object_set().
Diffstat (limited to 'modules/calendar/e-cal-shell-view-actions.c')
-rw-r--r--modules/calendar/e-cal-shell-view-actions.c14
1 files changed, 7 insertions, 7 deletions
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",