aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <descalante@igalia.com>2010-06-08 15:55:27 +0800
committerDiego Escalante Urrelo <descalante@igalia.com>2010-06-12 03:59:59 +0800
commit531ae385c42e7fb624ab3969804bbde76b67a71d (patch)
tree9474df40adc32b9c3ec648e3f791d2d125020a59 /embed
parent0680a9c0802bcf6df9d0e497e7528458b52e582a (diff)
downloadgsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.tar
gsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.tar.gz
gsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.tar.bz2
gsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.tar.lz
gsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.tar.xz
gsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.tar.zst
gsoc2013-epiphany-531ae385c42e7fb624ab3969804bbde76b67a71d.zip
ephy-embed: don't create Save As button manually
Bug #621050
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-embed.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 8ac2325f3..0051f7f69 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -552,7 +552,7 @@ confirm_action_from_mime (WebKitWebView *web_view,
DownloadAction action)
{
GtkWidget *parent_window;
- GtkWidget *dialog, *button, *image;
+ GtkWidget *dialog;
const char *action_label;
char *mime_description;
EphyMimePermission mime_permission;
@@ -646,15 +646,8 @@ confirm_action_from_mime (WebKitWebView *web_view,
g_free (mime_description);
- button = gtk_button_new_with_mnemonic (_("_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_set_can_default (button, TRUE);
- /* don't show the image! see bug #307818 */
- gtk_widget_show (button);
- gtk_dialog_add_action_widget (GTK_DIALOG (dialog),
- button, DOWNLOAD_ACTION_DOWNLOAD);
-
+ gtk_dialog_add_button (GTK_DIALOG (dialog),
+ GTK_STOCK_SAVE_AS, DOWNLOAD_ACTION_DOWNLOAD);
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
gtk_dialog_add_button (GTK_DIALOG (dialog),