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

Unified Diff: chrome/browser/ui/gtk/gtk_chrome_link_button.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_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
diff --git a/chrome/browser/ui/gtk/gtk_chrome_link_button.cc b/chrome/browser/ui/gtk/gtk_chrome_link_button.cc
index 8aca67aa05d3411d6688ef7968b6cca2e896754f..2a3bf8300988a219a8d797487edc5228a0aa454b 100644
--- a/chrome/browser/ui/gtk/gtk_chrome_link_button.cc
+++ b/chrome/browser/ui/gtk/gtk_chrome_link_button.cc
@@ -111,7 +111,7 @@ static void gtk_chrome_link_button_style_changed(GtkChromeLinkButton* button) {
// changed his GTK style.
gtk_chrome_link_button_set_text(button);
- if (GTK_WIDGET_VISIBLE(button))
+ if (gtk_widget_get_visible(GTK_WIDGET(button)))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
@@ -120,10 +120,10 @@ static gboolean gtk_chrome_link_button_expose(GtkWidget* widget,
GtkChromeLinkButton* button = GTK_CHROME_LINK_BUTTON(widget);
GtkWidget* label = button->label;
- if (GTK_WIDGET_STATE(widget) == GTK_STATE_ACTIVE && button->is_normal) {
+ if (gtk_widget_get_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_STATE(widget) != GTK_STATE_ACTIVE &&
+ } else if (gtk_widget_get_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 @@ static gboolean gtk_chrome_link_button_expose(GtkWidget* widget,
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,
- static_cast<GtkStateType>(GTK_WIDGET_STATE(widget)),
+ gtk_widget_get_state(widget),
&event->area, widget, NULL,
widget->allocation.x, widget->allocation.y,
widget->allocation.width, widget->allocation.height);
@@ -228,7 +228,7 @@ void gtk_chrome_link_button_set_use_gtk_theme(GtkChromeLinkButton* button,
gtk_chrome_link_button_set_text(button);
- if (GTK_WIDGET_VISIBLE(button))
+ if (gtk_widget_get_visible(GTK_WIDGET(button)))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
}
@@ -240,7 +240,7 @@ void gtk_chrome_link_button_set_label(GtkChromeLinkButton* button,
gtk_chrome_link_button_set_text(button);
- if (GTK_WIDGET_VISIBLE(button))
+ if (gtk_widget_get_visible(GTK_WIDGET(button)))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
@@ -255,7 +255,7 @@ void gtk_chrome_link_button_set_normal_color(GtkChromeLinkButton* button,
gtk_chrome_link_button_set_text(button);
- if (GTK_WIDGET_VISIBLE(button))
+ if (gtk_widget_get_visible(GTK_WIDGET(button)))
gtk_widget_queue_draw(GTK_WIDGET(button));
}
« 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