From 37f5375bc8c2d18dfe776332d0206806f672d81b Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 16 Dec 2004 13:19:51 +0000 Subject: Add stock icon to "Save As..." button. 2004-12-16 Christian Persch * embed/mozilla/ContentHandler.cpp: Add stock icon to "Save As..." button. --- embed/mozilla/ContentHandler.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'embed/mozilla') diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp index d4b9d378f..211fb72ea 100644 --- a/embed/mozilla/ContentHandler.cpp +++ b/embed/mozilla/ContentHandler.cpp @@ -28,6 +28,8 @@ #include #include #include +#include +#include #include #include #include @@ -231,7 +233,7 @@ release_cb (GContentHandler *data) NS_METHOD GContentHandler::MIMEConfirmAction () { - GtkWidget *dialog; + GtkWidget *dialog, *button, *image; const char *action_label; nsCOMPtr parentDOMWindow = do_GetInterface (mContext); @@ -281,8 +283,13 @@ NS_METHOD GContentHandler::MIMEConfirmAction () " it. You can save it instead.")); } - gtk_dialog_add_button (GTK_DIALOG (dialog), - _("_Save As..."), CONTENT_ACTION_SAVEAS); + button = gtk_button_new_with_label (_("_Save As...")); + image = gtk_image_new_from_stock (GTK_STOCK_SAVE_AS, GTK_ICON_SIZE_BUTTON); + gtk_button_set_image (GTK_BUTTON (button), image); + gtk_widget_show (image); + gtk_widget_show (button); + gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, CONTENT_ACTION_SAVEAS); + gtk_dialog_add_button (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, CONTENT_ACTION_NONE); gtk_dialog_add_button (GTK_DIALOG (dialog), -- cgit v1.2.3