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

Unified Diff: chrome/browser/ui/gtk/browser_toolbar_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/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_toolbar_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_toolbar_gtk.cc b/chrome/browser/ui/gtk/browser_toolbar_gtk.cc
index 06238dd033803bfd6c305cc93c746fd749b2c5ee..23f800230b6a1dbe3d939abbcba6f536f68974de 100644
--- a/chrome/browser/ui/gtk/browser_toolbar_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_toolbar_gtk.cc
@@ -211,7 +211,7 @@ void BrowserToolbarGtk::Init(Profile* profile,
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)).c_str());
g_signal_connect(wrench_button, "button-press-event",
G_CALLBACK(OnMenuButtonPressEventThunk), this);
- GTK_WIDGET_UNSET_FLAGS(wrench_button, GTK_CAN_FOCUS);
+ gtk_widget_set_can_focus(wrench_button, FALSE);
// Put the wrench button in a box so that we can paint the update notification
// over it.
@@ -301,7 +301,7 @@ void BrowserToolbarGtk::EnabledStateChangedForCommand(int id, bool enabled) {
break;
}
if (widget) {
- if (!enabled && GTK_WIDGET_STATE(widget) == GTK_STATE_PRELIGHT) {
+ if (!enabled && gtk_widget_get_state(widget) == GTK_STATE_PRELIGHT) {
// If we're disabling a widget, GTK will helpfully restore it to its
// previous state when we re-enable it, even if that previous state
// is the prelight. This looks bad. See the bug for a simple repro.
« no previous file with comments | « chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698