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

Unified Diff: chrome/browser/ui/gtk/gtk_custom_menu_item.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
Index: chrome/browser/ui/gtk/gtk_custom_menu_item.cc
diff --git a/chrome/browser/ui/gtk/gtk_custom_menu_item.cc b/chrome/browser/ui/gtk/gtk_custom_menu_item.cc
index 4e54c21b138e4d43df14e654837080c69bc51a67..fe0c0c140d8e0364c728784a698c4029018ab92e 100644
--- a/chrome/browser/ui/gtk/gtk_custom_menu_item.cc
+++ b/chrome/browser/ui/gtk/gtk_custom_menu_item.cc
@@ -171,7 +171,7 @@ static void gtk_custom_menu_item_finalize(GObject *object) {
static gint gtk_custom_menu_item_expose(GtkWidget* widget,
GdkEventExpose* event) {
- if (GTK_WIDGET_VISIBLE(widget) &&
+ if (gtk_widget_get_visible(widget) &&
GTK_WIDGET_MAPPED(widget) &&
gtk_bin_get_child(GTK_BIN(widget))) {
// We skip the drawing in the GtkMenuItem class it draws the highlighted
@@ -212,8 +212,7 @@ static void gtk_custom_menu_item_expose_button(GtkWidget* hbox,
int height = last_button->allocation.height;
gtk_paint_box(hbox->style, hbox->window,
- static_cast<GtkStateType>(
- GTK_WIDGET_STATE(current_button)),
+ gtk_widget_get_state(current_button),
GTK_SHADOW_OUT,
&current_button->allocation, hbox, "button",
x, y, width, height);
@@ -253,8 +252,7 @@ static gboolean gtk_custom_menu_item_hbox_expose(GtkWidget* widget,
gtk_bin_get_child(GTK_BIN(current_button))->allocation;
int half_offset = widget->style->xthickness / 2;
gtk_paint_vline(widget->style, widget->window,
- static_cast<GtkStateType>(
- GTK_WIDGET_STATE(current_button)),
+ gtk_widget_get_state(current_button),
&event->area, widget, "button",
child_alloc.y,
child_alloc.y + child_alloc.height,
« no previous file with comments | « chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox_unittest.cc ('k') | chrome/browser/ui/gtk/gtk_expanded_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698