diff options
author | JP Rosevear <jpr@novell.com> | 2004-07-26 23:35:36 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-07-26 23:35:36 +0800 |
commit | fd77100a729e5576f987e80473c60e0780ce0a34 (patch) | |
tree | 7534b89812ed26df32c5fbbebff8cc84dedb8404 /calendar/gui/dialogs/calendar-setup.c | |
parent | ef076f8049145118bd8d19bc29367681e2dafa9f (diff) | |
download | gsoc2013-evolution-fd77100a729e5576f987e80473c60e0780ce0a34.tar.gz gsoc2013-evolution-fd77100a729e5576f987e80473c60e0780ce0a34.tar.zst gsoc2013-evolution-fd77100a729e5576f987e80473c60e0780ce0a34.zip |
set a different title if we are editing; de-sensitize option menu if we
2004-07-26 JP Rosevear <jpr@novell.com>
* gui/dialogs/calendar-setup.c (calendar_setup_edit_calendar): set
a different title if we are editing; de-sensitize option menu if
we are editing
(calendar_setup_edit_task_list): set a different title if we are editing
* gui/dialogs/calendar-setup.glade: use task list instead of tasks
group
* gui/tasks-component.c (impl__get_userCreatableItems): add
assigned task as an item, use task list instead of tasks group
* gui/calendar--component.c (impl__get_userCreatableItems): fiddle
with shortcuts
svn path=/trunk/; revision=26735
Diffstat (limited to 'calendar/gui/dialogs/calendar-setup.c')
-rw-r--r-- | calendar/gui/dialogs/calendar-setup.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index 15a150b7de..213d0ac20f 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -657,11 +657,12 @@ calendar_setup_edit_calendar (GtkWindow *parent, ESource *source) source_dialog->window = glade_xml_get_widget (source_dialog->gui_xml, "add-calendar-window"); if (source) { + gtk_window_set_title (GTK_WINDOW (source_dialog->window), "Calendar Properties"); source_dialog->source = source; source_dialog->source_group = e_source_peek_group (source); g_object_ref (source); } - + g_signal_connect (source_dialog->window, "key-press-event", G_CALLBACK (key_press_event), NULL); source_dialog->name_entry = glade_xml_get_widget (source_dialog->gui_xml, "name-entry"); @@ -676,6 +677,7 @@ calendar_setup_edit_calendar (GtkWindow *parent, ESource *source) gtk_option_menu_set_menu (GTK_OPTION_MENU (source_dialog->group_optionmenu), menu); gtk_widget_show (menu); } + gtk_widget_set_sensitive (source_dialog->group_optionmenu, source == NULL); /* NOTE: This assumes that we have sources. If they don't exist, they're set up * on startup of the calendar component. */ @@ -783,10 +785,11 @@ calendar_setup_edit_task_list (GtkWindow *parent, ESource *source) source_dialog->window = glade_xml_get_widget (source_dialog->gui_xml, "add-task-list-window"); if (source) { + gtk_window_set_title (GTK_WINDOW (source_dialog->window), "Task List Properties"); source_dialog->source = source; source_dialog->source_group = e_source_peek_group (source); g_object_ref (source); - } + } g_signal_connect (source_dialog->window, "key-press-event", G_CALLBACK (key_press_event), NULL); |