aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-12-16 21:19:51 +0800
committerChristian Persch <chpe@src.gnome.org>2004-12-16 21:19:51 +0800
commit37f5375bc8c2d18dfe776332d0206806f672d81b (patch)
tree33120e3b4b540c9a30cba0710cc006e1624ff8e7
parent2d80c1635d0deafaae46a0237f2d76f76b5ed265 (diff)
downloadgsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.tar
gsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.tar.gz
gsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.tar.bz2
gsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.tar.lz
gsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.tar.xz
gsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.tar.zst
gsoc2013-epiphany-37f5375bc8c2d18dfe776332d0206806f672d81b.zip
Add stock icon to "Save As..." button.
2004-12-16 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/ContentHandler.cpp: Add stock icon to "Save As..." button.
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/ContentHandler.cpp13
2 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index ef42d1463..5314a53c9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2004-12-16 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/ContentHandler.cpp:
+
+ Add stock icon to "Save As..." button.
+
+2004-12-16 Christian Persch <chpe@cvs.gnome.org>
+
* embed/mozilla/ContentHandler.cpp:
Tell the user with which application we're going to open the content.
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 <gtk/gtkdialog.h>
#include <gtk/gtkmessagedialog.h>
#include <gtk/gtkstock.h>
+#include <gtk/gtkimage.h>
+#include <gtk/gtkbutton.h>
#include <libgnomevfs/gnome-vfs-mime.h>
#include <libgnomevfs/gnome-vfs-utils.h>
#include <glib/gi18n.h>
@@ -231,7 +233,7 @@ release_cb (GContentHandler *data)
NS_METHOD GContentHandler::MIMEConfirmAction ()
{
- GtkWidget *dialog;
+ GtkWidget *dialog, *button, *image;
const char *action_label;
nsCOMPtr<nsIDOMWindow> 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),