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/common/gtk_util.h | |
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/common/gtk_util.h')
-rw-r--r-- | chrome/common/gtk_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index 399cb42..d24442c 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -133,6 +133,11 @@ bool WidgetContainsCursor(GtkWidget* widget); // border or alt-tab list). void SetWindowIcon(GtkWindow* window); +// Adds an action button with the given text to the dialog. Only useful when you +// want a stock icon but not the stock text to go with it. Returns the button. +GtkWidget* AddButtonToDialog(GtkWidget* dialog, const gchar* text, + const gchar* stock_id, gint response_id); + } // namespace gtk_util #endif // CHROME_COMMON_GTK_UTIL_H_ |