diff options
author | Trent Lloyd <lathiat@bur.st> | 2004-05-25 17:09:33 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-05-25 17:09:33 +0800 |
commit | f0374055952ee8530779273c56cdaf904e4624a6 (patch) | |
tree | e1aa18671e02f7c865c7f411b38bd813317edc76 /calendar/gui/dialogs/delete-comp.c | |
parent | eacf97930e8312c7d4d291589053312bca42d46e (diff) | |
download | gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.tar gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.tar.gz gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.tar.bz2 gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.tar.lz gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.tar.xz gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.tar.zst gsoc2013-evolution-f0374055952ee8530779273c56cdaf904e4624a6.zip |
Fixes: #57472
2004-05-25 Trent Lloyd <lathiat@bur.st>
Fixes: #57472
* gui/dialogs/alarm-options.c:
* gui/dialogs/calendar-setup.c:
* gui/dialogs/cancel-comp.c:
* gui/dialogs/changed-comp.c:
* gui/dialogs/delete-comp.c:
* gui/dialogs/delete-error.c:
* gui/dialogs/save-comp.c:
* gui/dialogs/select-source-dialog.c:
* gui/dialogs/send-comp.c
* gui/dialogs/url-editor-dialog.c:
- Add include of e-icon-factory.h
- Set icon on window to be calendar/tasks icon rather than mail icon
svn path=/trunk/; revision=26073
Diffstat (limited to 'calendar/gui/dialogs/delete-comp.c')
-rw-r--r-- | calendar/gui/dialogs/delete-comp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/dialogs/delete-comp.c b/calendar/gui/dialogs/delete-comp.c index 1c81598021..33e755193c 100644 --- a/calendar/gui/dialogs/delete-comp.c +++ b/calendar/gui/dialogs/delete-comp.c @@ -26,6 +26,7 @@ #include <gtk/gtkstock.h> #include <gtk/gtkmessagedialog.h> #include <libgnome/gnome-i18n.h> +#include <e-util/e-icon-factory.h> #include "../calendar-config.h" #include "delete-comp.h" @@ -61,6 +62,7 @@ delete_component_dialog (ECalComponent *comp, { char *str; GtkWidget *dialog; + const char *stock_icon; int ret; if (comp) { @@ -91,6 +93,7 @@ delete_component_dialog (ECalComponent *comp, switch (vtype) { case E_CAL_COMPONENT_EVENT: + stock_icon = "stock_calendar"; if (tmp) str = g_strdup_printf (_("Are you sure you want to delete " "the appointment `%s'?"), tmp); @@ -100,6 +103,7 @@ delete_component_dialog (ECalComponent *comp, break; case E_CAL_COMPONENT_TODO: + stock_icon = "stock_todo"; if (tmp) str = g_strdup_printf (_("Are you sure you want to delete " "the task `%s'?"), tmp); @@ -109,6 +113,7 @@ delete_component_dialog (ECalComponent *comp, break; case E_CAL_COMPONENT_JOURNAL: + stock_icon = "stock_calendar"; if (tmp) str = g_strdup_printf (_("Are you sure you want to delete " "the journal entry `%s'?"), tmp); @@ -158,6 +163,7 @@ delete_component_dialog (ECalComponent *comp, dialog = gtk_message_dialog_new ((GtkWindow *)gtk_widget_get_toplevel (widget), 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", str); gtk_dialog_add_buttons ((GtkDialog *) dialog, GTK_STOCK_NO, GTK_RESPONSE_CANCEL, GTK_STOCK_YES, GTK_RESPONSE_OK, NULL); + gtk_window_set_icon (GTK_WINDOW (dialog), e_icon_factory_get_icon (stock_icon, 32)); g_free (str); ret = gtk_dialog_run ((GtkDialog *) dialog) == GTK_RESPONSE_OK; gtk_widget_destroy (dialog); |