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

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

Issue 7329003: Revert 91761 - GTK: More 2.18 goodness. Move from macros to real accessor functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- chrome/browser/ui/gtk/gtk_util.cc (revision 91773)
+++ chrome/browser/ui/gtk/gtk_util.cc (working copy)
@@ -80,7 +80,7 @@
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 @@
bool GrabAllInput(GtkWidget* widget) {
guint time = gtk_get_current_event_time();
- if (!gtk_widget_get_visible(widget))
+ if (!GTK_WIDGET_VISIBLE(widget))
return false;
if (!gdk_pointer_grab(widget->window, TRUE,
@@ -1187,7 +1187,7 @@
bool IsWidgetAncestryVisible(GtkWidget* widget) {
GtkWidget* parent = widget;
- while (parent && gtk_widget_get_visible(parent))
+ while (parent && GTK_WIDGET_VISIBLE(parent))
parent = parent->parent;
return !parent;
}
Property changes on: chrome/browser/ui/gtk/gtk_util.cc
___________________________________________________________________
Added: svn:mergeinfo
« 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