diff options
author | Not Zed <NotZed@Ximian.com> | 2003-04-15 06:52:32 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2003-04-15 06:52:32 +0800 |
commit | fb04925566a101e3d0995cf715ea2128e801548c (patch) | |
tree | 9af5c6707c31b2ebc8e0cdd5b8c61a03d7421238 /mail/mail-send-recv.c | |
parent | 3d5b5537a4951ef45b81112cdd9b3c0792ab47d9 (diff) | |
download | gsoc2013-evolution-fb04925566a101e3d0995cf715ea2128e801548c.tar.gz gsoc2013-evolution-fb04925566a101e3d0995cf715ea2128e801548c.tar.zst gsoc2013-evolution-fb04925566a101e3d0995cf715ea2128e801548c.zip |
create a stock cancel button with a cancel all text. (build_dialogue):
2003-04-14 Not Zed <NotZed@Ximian.com>
* mail-send-recv.c (build_dialogue): create a stock cancel button
with a cancel all text.
(build_dialogue): Create stock-like cancel buttons with no
accelerators. A workaround for #41043.
* message-list.c (ml_tree_value_at): if the node is the root node,
do nothing. etable shouldn' really be searching the root node if
it isn't visible ...? For #41190.
svn path=/trunk/; revision=20842
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 1c384a0270..bb0086c701 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -34,6 +34,8 @@ #include <gtk/gtkstock.h> #include <libgnomeui/gnome-window-icon.h> +#include "e-util/e-gtk-utils.h" + #include "filter/filter-filter.h" #include "camel/camel-filter-driver.h" #include "camel/camel-folder.h" @@ -295,8 +297,7 @@ build_dialogue (EAccountList *accounts, CamelFolder *outbox, const char *destina EIterator *iter; gd = (GtkDialog *)send_recv_dialogue = gtk_dialog_new_with_buttons(_("Send & Receive Mail"), NULL, 0, NULL); - stop = (GtkButton *)gtk_button_new_from_stock(GTK_STOCK_CANCEL); - gtk_button_set_label(stop, _("Cancel All")); + stop = (GtkButton *)e_gtk_button_new_with_icon(_("Cancel _All"), GTK_STOCK_CANCEL); gtk_widget_show((GtkWidget *)stop); gtk_dialog_add_action_widget(gd, (GtkWidget *)stop, GTK_RESPONSE_CANCEL); g_object_set(gd, "resizable", FALSE, NULL); @@ -376,7 +377,8 @@ build_dialogue (EAccountList *accounts, CamelFolder *outbox, const char *destina bar = (GtkProgressBar *)gtk_progress_bar_new (); - stop = (GtkButton *)gtk_button_new_from_stock(GTK_STOCK_CANCEL); + stop = (GtkButton *)e_gtk_button_new_with_icon(_("Cancel"), GTK_STOCK_CANCEL); + status_label = (GtkLabel *)gtk_label_new ((info->type == SEND_UPDATE) ? _("Updating...") : _("Waiting...")); @@ -432,7 +434,8 @@ build_dialogue (EAccountList *accounts, CamelFolder *outbox, const char *destina g_free (pretty_url); bar = (GtkProgressBar *)gtk_progress_bar_new (); - stop = (GtkButton *)gtk_button_new_from_stock(GTK_STOCK_CANCEL); + stop = (GtkButton *)e_gtk_button_new_with_icon(_("Cancel"), GTK_STOCK_CANCEL); + status_label = (GtkLabel *)gtk_label_new (_("Waiting...")); gtk_misc_set_alignment (GTK_MISC (label), 0, .5); |