Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2706)

Unified Diff: chrome/browser/gtk/gtk_chrome_link_button.cc

Issue 195071: GTK: Cache our GdkCursor objects, since building them hits the disk. (Closed)
Patch Set: Put in gtk_util Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/gtk/gtk_chrome_link_button.cc
diff --git a/chrome/browser/gtk/gtk_chrome_link_button.cc b/chrome/browser/gtk/gtk_chrome_link_button.cc
index fde471a81a6b31dd4befcf6856325362820c4c1f..defb188fbbffe7a4ce87e1a4c66b3a57ddc103de 100644
--- a/chrome/browser/gtk/gtk_chrome_link_button.cc
+++ b/chrome/browser/gtk/gtk_chrome_link_button.cc
@@ -7,6 +7,7 @@
#include <stdlib.h>
#include "base/logging.h"
+#include "chrome/common/gtk_util.h"
static const gchar* kLinkMarkup = "<u><span color=\"%s\">%s</span></u>";
@@ -182,7 +183,7 @@ static void gtk_chrome_link_button_init(GtkChromeLinkButton* button) {
button->is_blue = TRUE;
button->native_markup = NULL;
button->using_native_theme = TRUE;
- button->hand_cursor = gdk_cursor_new(GDK_HAND2);
+ button->hand_cursor = gtk_util::GetCursor(GDK_HAND2);
button->text = NULL;
gtk_container_add(GTK_CONTAINER(button), button->label);

Powered by Google App Engine
This is Rietveld 408576698