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)); |
} |