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

Unified Diff: chrome/browser/ui/gtk/gtk_chrome_button.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/find_bar_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_link_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/gtk_chrome_button.cc
===================================================================
--- chrome/browser/ui/gtk/gtk_chrome_button.cc (revision 91773)
+++ chrome/browser/ui/gtk/gtk_chrome_button.cc (working copy)
@@ -85,14 +85,14 @@
priv->use_gtk_rendering = FALSE;
priv->hover_state = -1.0;
- gtk_widget_set_can_focus(GTK_WIDGET(button), FALSE);
+ GTK_WIDGET_UNSET_FLAGS(button, GTK_CAN_FOCUS);
}
static gboolean gtk_chrome_button_expose(GtkWidget* widget,
GdkEventExpose* event) {
GtkChromeButtonPrivate *priv = GTK_CHROME_BUTTON_GET_PRIVATE(widget);
int paint_state = priv->paint_state < 0 ?
- gtk_widget_get_state(widget) : priv->paint_state;
+ GTK_WIDGET_STATE(widget) : priv->paint_state;
if (priv->use_gtk_rendering) {
// We have the superclass handle this expose when we aren't using custom
Property changes on: chrome/browser/ui/gtk/gtk_chrome_button.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/browser/ui/gtk/find_bar_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_link_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698