summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 03:52:53 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 03:52:53 +0000
commit7e5e9d2e535109d83b5c94aa928c397ce3b9bcc0 (patch)
tree01c0107f260a7f35bcf3656d4ff51bf7f50ca2aa /chrome
parentd0e9350f80049956cbe97f1b5fd283caec366d4a (diff)
downloadchromium_src-7e5e9d2e535109d83b5c94aa928c397ce3b9bcc0.zip
chromium_src-7e5e9d2e535109d83b5c94aa928c397ce3b9bcc0.tar.gz
chromium_src-7e5e9d2e535109d83b5c94aa928c397ce3b9bcc0.tar.bz2
linux: swap order of buttons for dangerous downloads
BUG=26756 Review URL: http://codereview.chromium.org/361024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/gtk/download_item_gtk.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/gtk/download_item_gtk.cc b/chrome/browser/gtk/download_item_gtk.cc
index d4f50f7..f091111 100644
--- a/chrome/browser/gtk/download_item_gtk.cc
+++ b/chrome/browser/gtk/download_item_gtk.cc
@@ -312,6 +312,13 @@ DownloadItemGtk::DownloadItemGtk(DownloadShelfGtk* parent_shelf,
gtk_box_pack_start(GTK_BOX(dangerous_hbox_), dangerous_label_,
TRUE, TRUE, 0);
+ // Create the nevermind button.
+ GtkWidget* dangerous_decline = gtk_button_new_with_label(
+ l10n_util::GetStringUTF8(IDS_DISCARD_DOWNLOAD).c_str());
+ g_signal_connect(dangerous_decline, "clicked",
+ G_CALLBACK(OnDangerousDecline), this);
+ gtk_util::CenterWidgetInHBox(dangerous_hbox_, dangerous_decline, false, 0);
+
// Create the ok button.
GtkWidget* dangerous_accept = gtk_button_new_with_label(
l10n_util::GetStringUTF8(
@@ -321,13 +328,6 @@ DownloadItemGtk::DownloadItemGtk(DownloadShelfGtk* parent_shelf,
G_CALLBACK(OnDangerousAccept), this);
gtk_util::CenterWidgetInHBox(dangerous_hbox_, dangerous_accept, false, 0);
- // Create the nevermind button.
- GtkWidget* dangerous_decline = gtk_button_new_with_label(
- l10n_util::GetStringUTF8(IDS_DISCARD_DOWNLOAD).c_str());
- g_signal_connect(dangerous_decline, "clicked",
- G_CALLBACK(OnDangerousDecline), this);
- gtk_util::CenterWidgetInHBox(dangerous_hbox_, dangerous_decline, false, 0);
-
// Put it in an alignment so that padding will be added on the left and
// right.
dangerous_prompt_ = gtk_alignment_new(0.0, 0.0, 1.0, 1.0);