From 4a24673d08e1e21c928afc61ff532a1e2d03a63b Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Fri, 21 May 2004 22:16:25 +0000 Subject: i2004-05-21 Larry Ewing * gui/dialogs/calendar-setup.c: set the dialog icons appropriately for add task and calendar dialogs. svn path=/trunk/; revision=26038 --- calendar/gui/dialogs/calendar-setup.c | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index f97af53c56..1c3d20ebb3 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -652,14 +652,6 @@ source_group_changed_sensitive (SourceDialog *source_dialog) general_update_dialog (source_dialog); } -static void -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); -} - static void new_calendar_cancel (SourceDialog *source_dialog) { @@ -684,6 +676,7 @@ calendar_setup_new_calendar (GtkWindow *parent) { SourceDialog *source_dialog = g_new0 (SourceDialog, 1); int index; + GList *icon_list; source_dialog->gui_xml = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, "add-calendar-window", NULL); if (!source_dialog->gui_xml) { @@ -743,13 +736,16 @@ 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 (general_test_uri), source_dialog); - - gtk_window_set_type_hint (GTK_WINDOW (source_dialog->window), GDK_WINDOW_TYPE_HINT_DIALOG); gtk_window_set_modal (GTK_WINDOW (source_dialog->window), TRUE); + icon_list = e_icon_factory_get_icon_list ("stock_calendar"); + if (icon_list) { + gtk_window_set_icon_list (GTK_WINDOW (source_dialog->window), icon_list); + g_list_foreach (icon_list, (GFunc) g_object_unref, NULL); + g_list_free (icon_list); + } + gtk_widget_show_all (source_dialog->window); return TRUE; } @@ -847,6 +843,7 @@ calendar_setup_new_task_list (GtkWindow *parent) { SourceDialog *source_dialog = g_new0 (SourceDialog, 1); int index; + GList *icon_list; source_dialog->gui_xml = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, "add-task-list-window", NULL); if (!source_dialog->gui_xml) { @@ -905,13 +902,17 @@ calendar_setup_new_task_list (GtkWindow *parent) 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); gtk_window_set_modal (GTK_WINDOW (source_dialog->window), TRUE); + + icon_list = e_icon_factory_get_icon_list ("stock_task"); + if (icon_list) { + gtk_window_set_icon_list (GTK_WINDOW (source_dialog->window), icon_list); + g_list_foreach (icon_list, (GFunc) g_object_unref, NULL); + g_list_free (icon_list); + } gtk_widget_show_all (source_dialog->window); return TRUE; -- cgit