Index: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc |
diff --git a/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc b/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc |
index e8c5b8c070dfc1252d8f47d4064429b9977def5a..5a00a15ac8635be19865ef4c7ce1537727fd450d 100644 |
--- a/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc |
+++ b/chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc |
@@ -1257,7 +1257,7 @@ gboolean OmniboxViewGtk::HandleViewButtonPress(GtkWidget* sender, |
// determine whether we should select all of the text when the button is |
// released. |
button_1_pressed_ = true; |
- text_view_focused_before_button_press_ = GTK_WIDGET_HAS_FOCUS(text_view_); |
+ text_view_focused_before_button_press_ = gtk_widget_has_focus(text_view_); |
text_selected_during_click_ = false; |
#endif |
@@ -1698,7 +1698,7 @@ void OmniboxViewGtk::HandleViewMoveFocus(GtkWidget* widget, |
handled = true; |
#endif |
- if (!handled && GTK_WIDGET_VISIBLE(instant_view_)) |
+ if (!handled && gtk_widget_get_visible(instant_view_)) |
handled = model_->CommitSuggestedText(true); |
if (!handled) { |