[epiphany/gnome-2-30] ephy-embed: don't create Save As button manually
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-2-30] ephy-embed: don't create Save As button manually
- Date: Mon, 30 Aug 2010 21:01:31 +0000 (UTC)
commit f966d82fcf85f444b2e123f1b3af1a2591769cc4
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Tue Jun 8 02:55:27 2010 -0500
ephy-embed: don't create Save As button manually
Bug #621050
embed/ephy-embed.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index fa4f90d..58b0e55 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -683,7 +683,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;
@@ -777,15 +777,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),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]