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

Unified Diff: chrome/browser/ui/gtk/gtk_chrome_link_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/gtk_chrome_button.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.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_link_button.cc
===================================================================
--- chrome/browser/ui/gtk/gtk_chrome_link_button.cc (revision 91773)
+++ chrome/browser/ui/gtk/gtk_chrome_link_button.cc (working copy)
@@ -111,7 +111,7 @@
// changed his GTK style.
gtk_chrome_link_button_set_text(button);
- if (gtk_widget_get_visible(GTK_WIDGET(button)))
+ if (GTK_WIDGET_VISIBLE(button))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
@@ -120,10 +120,10 @@
GtkChromeLinkButton* button = GTK_CHROME_LINK_BUTTON(widget);
GtkWidget* label = button->label;
- if (gtk_widget_get_state(widget) == GTK_STATE_ACTIVE && button->is_normal) {
+ if (GTK_WIDGET_STATE(widget) == GTK_STATE_ACTIVE && button->is_normal) {
gtk_label_set_markup(GTK_LABEL(label), button->pressed_markup);
button->is_normal = FALSE;
- } else if (gtk_widget_get_state(widget) != GTK_STATE_ACTIVE &&
+ } else if (GTK_WIDGET_STATE(widget) != GTK_STATE_ACTIVE &&
!button->is_normal) {
gtk_label_set_markup(GTK_LABEL(label),
button->using_native_theme ? button->native_markup :
@@ -135,9 +135,9 @@
gtk_container_propagate_expose(GTK_CONTAINER(widget), label, event);
// Draw the focus rectangle.
- if (gtk_widget_has_focus(widget)) {
+ if (GTK_WIDGET_HAS_FOCUS(widget)) {
gtk_paint_focus(widget->style, widget->window,
- gtk_widget_get_state(widget),
+ static_cast<GtkStateType>(GTK_WIDGET_STATE(widget)),
&event->area, widget, NULL,
widget->allocation.x, widget->allocation.y,
widget->allocation.width, widget->allocation.height);
@@ -228,7 +228,7 @@
gtk_chrome_link_button_set_text(button);
- if (gtk_widget_get_visible(GTK_WIDGET(button)))
+ if (GTK_WIDGET_VISIBLE(button))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
}
@@ -240,7 +240,7 @@
gtk_chrome_link_button_set_text(button);
- if (gtk_widget_get_visible(GTK_WIDGET(button)))
+ if (GTK_WIDGET_VISIBLE(button))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
@@ -255,7 +255,7 @@
gtk_chrome_link_button_set_text(button);
- if (gtk_widget_get_visible(GTK_WIDGET(button)))
+ if (GTK_WIDGET_VISIBLE(button))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
Property changes on: chrome/browser/ui/gtk/gtk_chrome_link_button.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/browser/ui/gtk/gtk_chrome_button.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698