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

Unified Diff: chrome/browser/ui/libgtkui/gtk_util.h

Issue 2626373003: Gtk3: Fix link color in 3.12 and later (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/gtk_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/libgtkui/gtk_util.h
diff --git a/chrome/browser/ui/libgtkui/gtk_util.h b/chrome/browser/ui/libgtkui/gtk_util.h
index f63360143982368afb1ec12fadc057f70c43e86a..d679f33fd61fc1cad1da0eadef74c006bb86bd62 100644
--- a/chrome/browser/ui/libgtkui/gtk_util.h
+++ b/chrome/browser/ui/libgtkui/gtk_util.h
@@ -68,6 +68,13 @@ aura::Window* GetAuraTransientParent(GtkWidget* dialog);
void ClearAuraTransientParent(GtkWidget* dialog);
#if GTK_MAJOR_VERSION > 2
+// These constants are defined in gtk/gtkenums.h in Gtk3.12 or later.
+// They are added here as a convenience to avoid version checks, and
+// can be removed once the sysroot is switched from Wheezy to Jessie.
+#define GTK_STATE_FLAG_LINK static_cast<GtkStateFlags>(1 << 9)
+#define GTK_STATE_FLAG_VISITED static_cast<GtkStateFlags>(1 << 10)
+#define GTK_STATE_FLAG_CHECKED static_cast<GtkStateFlags>(1 << 11)
+
// Returns true iff the runtime version of Gtk used meets
// |major|.|minor|.|micro|.
bool GtkVersionCheck(int major, int minor = 0, int micro = 0);
« no previous file with comments | « no previous file | chrome/browser/ui/libgtkui/gtk_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698