From 2fdec09f4df454bae7c39cbdea4212b29ea36f18 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Tue, 27 Apr 2004 21:58:49 +0000 Subject: hook up the color picker and test buttons in the new task dialog. 2004-04-27 Larry Ewing * gui/dialogs/calendar-setup.c: hook up the color picker and test buttons in the new task dialog. * gui/dialogs/calendar-setup.glade: fix visibility and color picker names. svn path=/trunk/; revision=25644 --- calendar/ChangeLog | 9 +++++++++ calendar/gui/dialogs/calendar-setup.c | 13 ++++++++++--- calendar/gui/dialogs/calendar-setup.glade | 7 ++----- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index feaf052ef1..ccd2f9ebbd 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2004-04-27 Larry Ewing + + * gui/dialogs/calendar-setup.c: hook up the color picker and test + buttons in the new task dialog. + + * gui/dialogs/calendar-setup.glade: fix visibility and color + picker names. + 2004-04-27 Larry Ewing * gui/dialogs/calendar-setup.c (new_calendar_test_uri): add @@ -7,6 +15,7 @@ (source_to_dialog): set the color picker color if the source has one. (dialog_to_source): set the source color. + 2004-04-27 Jeffrey Stedfast diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index 93270fea48..d841150e48 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -552,10 +553,11 @@ source_group_changed_sensitive (SourceDialog *source_dialog) } static void -new_calendar_test_uri (SourceDialog *source_dialog) +general_test_uri (SourceDialog *source_dialog) { + /* FIXME this should do something more specific that just showing the uri */ gnome_url_show (gtk_entry_get_text (GTK_ENTRY (source_dialog->uri_entry)), - NULL) + NULL); } static void @@ -641,7 +643,7 @@ calendar_setup_new_calendar (GtkWindow *parent) source_to_dialog (source_dialog); g_signal_connect_swapped (glade_xml_get_widget (source_dialog->gui_xml, "uri-button"), "clicked", - G_CALLBACK (new_calendar_test_uri), source_dialog); + G_CALLBACK (general_test_uri), source_dialog); gtk_window_set_type_hint (GTK_WINDOW (source_dialog->window), GDK_WINDOW_TYPE_HINT_DIALOG); @@ -798,6 +800,11 @@ calendar_setup_new_task_list (GtkWindow *parent) g_object_weak_ref (G_OBJECT (source_dialog->window), (GWeakNotify) source_dialog_destroy, source_dialog); + source_dialog->source_color = glade_xml_get_widget (source_dialog->gui_xml, "source-color"); + + g_signal_connect_swapped (glade_xml_get_widget (source_dialog->gui_xml, "uri-button"), "clicked", + G_CALLBACK (general_test_uri), source_dialog); + source_to_dialog (source_dialog); gtk_window_set_type_hint (GTK_WINDOW (source_dialog->window), GDK_WINDOW_TYPE_HINT_DIALOG); diff --git a/calendar/gui/dialogs/calendar-setup.glade b/calendar/gui/dialogs/calendar-setup.glade index bd67f362eb..9f916d237f 100644 --- a/calendar/gui/dialogs/calendar-setup.glade +++ b/calendar/gui/dialogs/calendar-setup.glade @@ -5,7 +5,6 @@ - True Add Calendar GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE @@ -1187,7 +1186,6 @@ - True Add Tasks Group GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE @@ -1218,7 +1216,7 @@ True True 0 - Chillonia + True * False @@ -1293,7 +1291,6 @@ 0.5 0 0 - group-color 0 @@ -1306,7 +1303,7 @@ - + True True True -- cgit v1.2.3