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

Unified Diff: chrome/browser/ui/libgtk2ui/gtk2_util.cc

Issue 1234223005: Initial gtk3 support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed abort on GtkPrintUnixDialog Created 5 years, 5 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/ui/libgtk2ui/gtk2_util.cc
diff --git a/chrome/browser/ui/libgtk2ui/gtk2_util.cc b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
index 8bac9cb3dc39151dad6ab40234337680cb4f2ad0..bd8d45056e5612d631e0bf24afbc1204e4b38698 100644
--- a/chrome/browser/ui/libgtk2ui/gtk2_util.cc
+++ b/chrome/browser/ui/libgtk2ui/gtk2_util.cc
@@ -135,15 +135,15 @@ void ClearAuraTransientParent(GtkWidget* dialog) {
g_object_set_data(G_OBJECT(dialog), kAuraTransientParent, NULL);
}
-GtkStateType GetGtkState(ui::NativeTheme::State state) {
+GtkStateFlags GetGtkState(ui::NativeTheme::State state) {
switch (state) {
- case ui::NativeTheme::kDisabled: return GTK_STATE_INSENSITIVE;
- case ui::NativeTheme::kHovered: return GTK_STATE_PRELIGHT;
- case ui::NativeTheme::kNormal: return GTK_STATE_NORMAL;
- case ui::NativeTheme::kPressed: return GTK_STATE_ACTIVE;
+ case ui::NativeTheme::kDisabled: return GTK_STATE_FLAG_INSENSITIVE;
+ case ui::NativeTheme::kHovered: return GTK_STATE_FLAG_PRELIGHT;
+ case ui::NativeTheme::kNormal: return GTK_STATE_FLAG_NORMAL;
+ case ui::NativeTheme::kPressed: return GTK_STATE_FLAG_ACTIVE;
case ui::NativeTheme::kNumStates: NOTREACHED();
}
- return GTK_STATE_NORMAL;
+ return GTK_STATE_FLAG_NORMAL;
}
} // namespace libgtk2ui

Powered by Google App Engine
This is Rietveld 408576698