aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@src.gnome.org>2004-05-22 06:16:25 +0800
committerLarry Ewing <lewing@src.gnome.org>2004-05-22 06:16:25 +0800
commit4a24673d08e1e21c928afc61ff532a1e2d03a63b (patch)
tree7809bc63c06bb432cd84f21c6d433b76431f5005
parent3093b426d23077ccca9cfbe2d94ca20405d62336 (diff)
downloadgsoc2013-evolution-4a24673d08e1e21c928afc61ff532a1e2d03a63b.tar.gz
gsoc2013-evolution-4a24673d08e1e21c928afc61ff532a1e2d03a63b.tar.zst
gsoc2013-evolution-4a24673d08e1e21c928afc61ff532a1e2d03a63b.zip
i2004-05-21 Larry Ewing <lewing@ximian.com>
* gui/dialogs/calendar-setup.c: set the dialog icons appropriately for add task and calendar dialogs. svn path=/trunk/; revision=26038
-rw-r--r--calendar/ChangeLog5
-rw-r--r--calendar/gui/dialogs/calendar-setup.c31
2 files changed, 21 insertions, 15 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index d8c0905751..cc178e82c2 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,10 @@
2004-05-21 Larry Ewing <lewing@ximian.com>
+ * gui/dialogs/calendar-setup.c: set the dialog icons appropriately
+ for add task and calendar dialogs.
+
+2004-05-21 Larry Ewing <lewing@ximian.com>
+
* gui/dialogs/calendar-setup.c: remove references to the uri
buttons.
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
@@ -653,14 +653,6 @@ source_group_changed_sensitive (SourceDialog *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)
{
gtk_widget_destroy (source_dialog->window);
@@ -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;