diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 18:22:00 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-03 18:22:00 +0000 |
commit | f3a88811802127f14a28fd0fa0fb8cb4ff0c222d (patch) | |
tree | e44e0db883af3bab3c9170eecd26643202798858 /chrome/browser/gtk/import_dialog_gtk.cc | |
parent | b614cbb088107996d8e56d30cdecefca9f14d5b6 (diff) | |
download | chromium_src-f3a88811802127f14a28fd0fa0fb8cb4ff0c222d.zip chromium_src-f3a88811802127f14a28fd0fa0fb8cb4ff0c222d.tar.gz chromium_src-f3a88811802127f14a28fd0fa0fb8cb4ff0c222d.tar.bz2 |
GTK: Add stock icons to some dialog buttons.
To be clear, this only adds button images from stock images, and doesn't change the text of the buttons. I chose APPLY for dialogs that involve checkboxes. I chose OK for dialogs without checkboxes.
also
- switched the position of the OK/Cancel buttons on the import lock dialog.
- changed the first run dialog CANCEL button to QUIT, because CANCEL is really confusing in that situation (this is a problem on windows as well).
I couldn't find any other dialogs that are missing button images, but if you see some call em out.
BUG=none
TEST=look at all the pretty images.
Review URL: http://codereview.chromium.org/160493
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22288 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/import_dialog_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/import_dialog_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/import_dialog_gtk.cc b/chrome/browser/gtk/import_dialog_gtk.cc index 33a12cb..c1cbf35 100644 --- a/chrome/browser/gtk/import_dialog_gtk.cc +++ b/chrome/browser/gtk/import_dialog_gtk.cc @@ -39,9 +39,9 @@ ImportDialogGtk::ImportDialogGtk(GtkWindow* parent, Profile* profile) : // Add import button separately as we might need to disable it, if // no supported browsers found. - GtkWidget* import_button = gtk_dialog_add_button(GTK_DIALOG(dialog_), + GtkWidget* import_button = gtk_util::AddButtonToDialog(dialog_, l10n_util::GetStringUTF8(IDS_IMPORT_COMMIT).c_str(), - GTK_RESPONSE_ACCEPT); + GTK_STOCK_APPLY, GTK_RESPONSE_ACCEPT); // TODO(rahulk): find how to set size properly so that the dialog // box width is at least enough to display full title. |