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

Unified Diff: chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc

Issue 7227027: GTK: More 2.18 goodness. Move from macros to real accessor functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove views/ Created 9 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
« no previous file with comments | « chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc ('k') | chrome/browser/ui/gtk/reload_button_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc ('k') | chrome/browser/ui/gtk/reload_button_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698