diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 16:36:43 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-11 16:36:43 +0000 |
commit | eb1d2a1e52a5832e3c2361eafd4a737e1cf0640d (patch) | |
tree | dff0c5280b056edb4ad78a798d685534b054945d /chrome/browser/gtk/gtk_chrome_button.cc | |
parent | 4e086463cb7de8e6c1538e7282d2ed260ae8099f (diff) | |
download | chromium_src-eb1d2a1e52a5832e3c2361eafd4a737e1cf0640d.zip chromium_src-eb1d2a1e52a5832e3c2361eafd4a737e1cf0640d.tar.gz chromium_src-eb1d2a1e52a5832e3c2361eafd4a737e1cf0640d.tar.bz2 |
Reimplement NineBox using Cairo.
- Fixes a bug we've had for a long time drawing the wrench button. We would
over-tile the center portion, and draw the right images on top of it.
- Move away from x1 .. x2 parameters to more clear width and height.
- Makes the code significantly more straightforward and efficient.
Review URL: http://codereview.chromium.org/115181
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15755 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/gtk_chrome_button.cc')
-rw-r--r-- | chrome/browser/gtk/gtk_chrome_button.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/gtk/gtk_chrome_button.cc b/chrome/browser/gtk/gtk_chrome_button.cc index 3206e9f..93b0218 100644 --- a/chrome/browser/gtk/gtk_chrome_button.cc +++ b/chrome/browser/gtk/gtk_chrome_button.cc @@ -12,11 +12,11 @@ namespace { // The theme graphics for when the mouse is over the button. -static NineBox* g_nine_box_prelight; +NineBox* g_nine_box_prelight; // The theme graphics for when the button is clicked. -static NineBox* g_nine_box_active; +NineBox* g_nine_box_active; -} +} // namespace G_BEGIN_DECLS @@ -71,7 +71,7 @@ static gboolean gtk_chrome_button_expose(GtkWidget* widget, gtk_bin_get_child(GTK_BIN(widget)), event); - return FALSE; + return TRUE; // Don't propagate, we are the default handler. } GtkWidget* gtk_chrome_button_new(void) { |