aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2007-12-04 02:22:12 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-12-04 02:22:12 +0800
commitcf649a8408918e3cd5a185dabaa7b9ba497ad250 (patch)
tree855a04774f7918fd7523a7e5fcdba09691c3d1ca /calendar/gui/dialogs
parent796e7ca63b134fca7767d1b009aa973c03fd46a6 (diff)
downloadgsoc2013-evolution-cf649a8408918e3cd5a185dabaa7b9ba497ad250.tar.gz
gsoc2013-evolution-cf649a8408918e3cd5a185dabaa7b9ba497ad250.tar.zst
gsoc2013-evolution-cf649a8408918e3cd5a185dabaa7b9ba497ad250.zip
** Fix for bug #440497
2007-12-03 Milan Crha <mcrha@redhat.com> ** Fix for bug #440497 * gui/e-meeting-list-view.h: (e_meeting_list_view_column_set_visible): Prototype changed to refer to column based on enum identifier. * gui/e-meeting-list-view.c: (build_table): Store column enum identifier in column datas, for later use. * gui/e-meeting-list-view.c: (e_meeting_list_view_column_set_visible): * gui/dialogs/task-page.c: * gui/dialogs/event-page.c: * gui/e-meeting-time-sel.c: Refer for column based on the enum, not on the column title. svn path=/trunk/; revision=34628
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/event-page.c19
-rw-r--r--calendar/gui/dialogs/task-page.c19
2 files changed, 18 insertions, 20 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 5105773b8b..2c1eea16ce 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -752,7 +752,7 @@ event_page_set_view_role (EventPage *epage, gboolean state)
{
EventPagePrivate *priv = epage->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "Role", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_ROLE_COL, state);
}
void
@@ -760,7 +760,7 @@ event_page_set_view_status (EventPage *epage, gboolean state)
{
EventPagePrivate *priv = epage->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "Status", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_STATUS_COL, state);
}
void
@@ -768,7 +768,7 @@ event_page_set_view_type (EventPage *epage, gboolean state)
{
EventPagePrivate *priv = epage->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "Type", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_TYPE_COL, state);
}
void
@@ -776,7 +776,7 @@ event_page_set_view_rsvp (EventPage *epage, gboolean state)
{
EventPagePrivate *priv = epage->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "RSVP", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_RSVP_COL, state);
}
void
@@ -2984,12 +2984,11 @@ init_widgets (EventPage *epage)
g_signal_connect((priv->start_timezone), "changed",
G_CALLBACK (start_timezone_changed_cb), epage);
- e_meeting_list_view_column_set_visible (priv->list_view, "Attendee ",
- TRUE);
- e_meeting_list_view_column_set_visible (priv->list_view, "Role", calendar_config_get_show_role());
- e_meeting_list_view_column_set_visible (priv->list_view, "RSVP", calendar_config_get_show_rsvp());
- e_meeting_list_view_column_set_visible (priv->list_view, "Status", calendar_config_get_show_status());
- e_meeting_list_view_column_set_visible (priv->list_view, "Type", calendar_config_get_show_type());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_ATTENDEE_COL, TRUE);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_ROLE_COL, calendar_config_get_show_role ());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_RSVP_COL, calendar_config_get_show_rsvp ());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_STATUS_COL, calendar_config_get_show_status ());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_TYPE_COL, calendar_config_get_show_type ());
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->list_view));
gtk_tree_selection_set_mode (selection, GTK_SELECTION_MULTIPLE);
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index f0864edd5e..f4cf1ecd3b 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -356,7 +356,7 @@ task_page_set_view_role (TaskPage *page, gboolean state)
{
TaskPagePrivate *priv = page->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "Role", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_ROLE_COL, state);
}
void
@@ -364,7 +364,7 @@ task_page_set_view_status (TaskPage *page, gboolean state)
{
TaskPagePrivate *priv = page->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "Status", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_STATUS_COL, state);
}
void
@@ -372,7 +372,7 @@ task_page_set_view_type (TaskPage *page, gboolean state)
{
TaskPagePrivate *priv = page->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "Type", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_TYPE_COL, state);
}
void
@@ -380,7 +380,7 @@ task_page_set_view_rsvp (TaskPage *page, gboolean state)
{
TaskPagePrivate *priv = page->priv;
- e_meeting_list_view_column_set_visible (priv->list_view, "RSVP", state);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_RSVP_COL, state);
}
void
@@ -2050,12 +2050,11 @@ init_widgets (TaskPage *tpage)
task_page_set_show_timezone (tpage, calendar_config_get_show_timezone());
- e_meeting_list_view_column_set_visible (priv->list_view, "Attendee ",
- TRUE);
- e_meeting_list_view_column_set_visible (priv->list_view, "Role", calendar_config_get_show_role());
- e_meeting_list_view_column_set_visible (priv->list_view, "RSVP", calendar_config_get_show_rsvp());
- e_meeting_list_view_column_set_visible (priv->list_view, "Status", calendar_config_get_show_status());
- e_meeting_list_view_column_set_visible (priv->list_view, "Type", calendar_config_get_show_type());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_ATTENDEE_COL, TRUE);
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_ROLE_COL, calendar_config_get_show_role ());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_RSVP_COL, calendar_config_get_show_rsvp ());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_STATUS_COL, calendar_config_get_show_status ());
+ e_meeting_list_view_column_set_visible (priv->list_view, E_MEETING_STORE_TYPE_COL, calendar_config_get_show_type ());
task_page_set_show_categories (tpage, calendar_config_get_show_categories());