diff options
author | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-11-16 21:53:47 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2005-11-16 21:53:47 +0800 |
commit | ee804aafe11507b85a3626480aa406b16b8104da (patch) | |
tree | f5468100742589f38aebff7065561dcfc82d8ba9 /calendar/gui/dialogs/event-page.c | |
parent | 5014e7f941b9bbcf22a40bc35738b8bd57f94503 (diff) | |
download | gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.tar gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.tar.gz gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.tar.bz2 gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.tar.lz gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.tar.xz gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.tar.zst gsoc2013-evolution-ee804aafe11507b85a3626480aa406b16b8104da.zip |
UI changes for task editor.
svn path=/trunk/; revision=30626
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index 7414bab596..a00c3fa801 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -331,19 +331,16 @@ set_classification_menu (EventPage *epage, gint class) bonobo_ui_component_freeze (epage->priv->uic, NULL); switch (class) { case E_CAL_COMPONENT_CLASS_PUBLIC: - printf("to pub\n"); bonobo_ui_component_set_prop ( epage->priv->uic, "/commands/ActionClassPublic", "state", "1", NULL); break; case E_CAL_COMPONENT_CLASS_CONFIDENTIAL: - printf("to conf\n"); bonobo_ui_component_set_prop ( epage->priv->uic, "/commands/ActionClassConfidential", "state", "1", NULL); break; case E_CAL_COMPONENT_CLASS_PRIVATE: - printf("to priv\n"); bonobo_ui_component_set_prop ( epage->priv->uic, "/commands/ActionClassPrivate", "state", "1", NULL); @@ -717,14 +714,6 @@ is_custom_alarm_store (EAlarmList *alarm_list_store, char *old_summary, CalUnit } void -event_page_set_view_attendee (EventPage *epage, gboolean state) -{ - EventPagePrivate *priv = epage->priv; - - e_meeting_list_view_column_set_visible (priv->list_view, "Attendee ", state); -} - -void event_page_set_view_role (EventPage *epage, gboolean state) { EventPagePrivate *priv = epage->priv; @@ -759,7 +748,6 @@ event_page_set_view_rsvp (EventPage *epage, gboolean state) void event_page_set_classification (EventPage *epage, ECalComponentClassification class) { - printf("Setting to %d\n", class); epage->priv->classification = class; } @@ -784,9 +772,7 @@ sensitize_widgets (EventPage *epage) custom = is_custom_alarm_store (priv->alarm_list_store, priv->old_summary, priv->alarm_units, priv->alarm_interval, NULL); alarm = e_dialog_toggle_get (priv->alarm); - gtk_widget_set_sensitive (priv->summary_label, sensitize); gtk_entry_set_editable (GTK_ENTRY (priv->summary), sensitize); - gtk_widget_set_sensitive (priv->location_label, sensitize); gtk_entry_set_editable (GTK_ENTRY (priv->location), sensitize); gtk_widget_set_sensitive (priv->start_time, sensitize); gtk_widget_set_sensitive (priv->start_timezone, sensitize); @@ -817,11 +803,11 @@ sensitize_widgets (EventPage *epage) , NULL); bonobo_ui_component_set_prop (priv->uic, "/commands/ActionAllDayEvent", "sensitive", sensitize ? "1" : "0" , NULL); - bonobo_ui_component_set_prop (priv->uic, "/commands/ActionRecurrance", "sensitive", sensitize ? "1" : "0" + bonobo_ui_component_set_prop (priv->uic, "/commands/ActionRecurrence", "sensitive", sensitize ? "1" : "0" , NULL); - bonobo_ui_component_set_prop (priv->uic, "/commands/ActionShowTimeBusy", "sensitive", sensitize ? "1" : "0" + bonobo_ui_component_set_prop (priv->uic, "/commands/ActionShowTimeBusy", "sensitive", !read_only ? "1" : "0" , NULL); - bonobo_ui_component_set_prop (priv->uic, "/commands/ActionAlarm", "sensitive", sensitize ? "1" : "0" + bonobo_ui_component_set_prop (priv->uic, "/commands/ActionAlarm", "sensitive", !read_only ? "1" : "0" , NULL); bonobo_ui_component_set_prop (priv->uic, "/commands/ActionClassPublic", "sensitive", sensitize ? "1" : "0" , NULL); @@ -831,6 +817,8 @@ sensitize_widgets (EventPage *epage) sensitize ? "1" : "0", NULL); bonobo_ui_component_set_prop (priv->uic, "/commands/ViewCategories", "sensitive", sensitize ? "1" : "0" , NULL); + bonobo_ui_component_set_prop (priv->uic, "/commands/InsertSendOptions", "sensitive", sensitize ? "1" : "0" + , NULL); if (!priv->is_meeting) { gtk_widget_hide (priv->calendar_label); @@ -1003,8 +991,7 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) if (e_cal_get_static_capability ( page->client, CAL_STATIC_CAPABILITY_ORGANIZER_NOT_EMAIL_ADDRESS)) - // gtk_widget_hide (priv->existing_organizer_btn); - gtk_widget_set_sensitive (priv->invite, FALSE); + gtk_widget_set_sensitive (priv->invite, FALSE); gtk_widget_set_sensitive (priv->add, FALSE); gtk_widget_set_sensitive (priv->remove, FALSE); priv->user_org = FALSE; @@ -1017,7 +1004,6 @@ event_page_fill_widgets (CompEditorPage *page, ECalComponent *comp) else string = g_strdup (strip); - // gtk_label_set_text (GTK_LABEL (priv->existing_organizer), string); g_free (string); priv->existing = TRUE; } @@ -1281,7 +1267,6 @@ event_page_fill_component (CompEditorPage *page, ECalComponent *comp) /* Classification */ e_cal_component_set_classification (comp, priv->classification); - printf("Storing %d\n", priv->classification); /* Show Time As (Transparency) */ busy = priv->show_time_as_busy; @@ -2619,7 +2604,8 @@ 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 ", calendar_config_get_show_attendee()); + 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()); |