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/gtk_util.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/gtk_floating_container.cc ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_util.cc
diff --git a/chrome/browser/ui/gtk/gtk_util.cc b/chrome/browser/ui/gtk/gtk_util.cc
index ff9604bf9dfeb0ae8cec5a000d0f7c6b29525c8a..8bdfa041d2f1de2161aa6feb9c398adb0d0c2a60 100644
--- a/chrome/browser/ui/gtk/gtk_util.cc
+++ b/chrome/browser/ui/gtk/gtk_util.cc
@@ -80,7 +80,7 @@ gboolean OnMouseButtonPressed(GtkWidget* widget, GdkEventButton* event,
gpointer userdata) {
if (event->type == GDK_BUTTON_PRESS) {
if (gtk_button_get_focus_on_click(GTK_BUTTON(widget)) &&
- !GTK_WIDGET_HAS_FOCUS(widget)) {
+ !gtk_widget_has_focus(widget)) {
gtk_widget_grab_focus(widget);
}
@@ -933,7 +933,7 @@ WindowOpenDisposition DispositionForCurrentButtonPressEvent() {
bool GrabAllInput(GtkWidget* widget) {
guint time = gtk_get_current_event_time();
- if (!GTK_WIDGET_VISIBLE(widget))
+ if (!gtk_widget_get_visible(widget))
return false;
if (!gdk_pointer_grab(widget->window, TRUE,
@@ -1187,7 +1187,7 @@ string16 GetStockPreferencesMenuLabel() {
bool IsWidgetAncestryVisible(GtkWidget* widget) {
GtkWidget* parent = widget;
- while (parent && GTK_WIDGET_VISIBLE(parent))
+ while (parent && gtk_widget_get_visible(parent))
parent = parent->parent;
return !parent;
}
« no previous file with comments | « chrome/browser/ui/gtk/gtk_floating_container.cc ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698