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

Unified Diff: chrome/browser/ui/gtk/hover_controller_gtk.cc

Issue 8588068: GTK: Create the start of a compatibility header wrapping deprecated methods. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to ToT and remove views/ cleanups. Created 9 years, 1 month 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 | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/hover_controller_gtk.cc
diff --git a/chrome/browser/ui/gtk/hover_controller_gtk.cc b/chrome/browser/ui/gtk/hover_controller_gtk.cc
index f110ad897f50e1f33342d314ce4afa60b041579d..d58a05a1ac5d82c720b660550b10db2c07213c17 100644
--- a/chrome/browser/ui/gtk/hover_controller_gtk.cc
+++ b/chrome/browser/ui/gtk/hover_controller_gtk.cc
@@ -6,6 +6,7 @@
#include "base/message_loop.h"
#include "chrome/browser/ui/gtk/gtk_chrome_button.h"
+#include "ui/base/gtk/gtk_compat.h"
static const gchar* kHoverControllerGtkKey = "__HOVER_CONTROLLER_GTK__";
@@ -114,7 +115,7 @@ void HoverControllerGtk::OnHierarchyChanged(GtkWidget* widget,
GtkWidget* previous_toplevel) {
// GTK+ does not emit leave-notify-event signals when a widget
// becomes unanchored, so manually unset the hover states.
- if (!GTK_WIDGET_TOPLEVEL(gtk_widget_get_toplevel(widget))) {
+ if (!gtk_widget_is_toplevel(gtk_widget_get_toplevel(widget))) {
gtk_widget_set_state(button_, GTK_STATE_NORMAL);
hover_animation_.Reset();
gtk_chrome_button_set_hover_state(GTK_CHROME_BUTTON(button_), 0.0);
« no previous file with comments | « chrome/browser/ui/gtk/gtk_util.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698