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

Unified Diff: chrome/browser/ui/gtk/gtk_custom_menu_item.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
Index: chrome/browser/ui/gtk/gtk_custom_menu_item.cc
===================================================================
--- chrome/browser/ui/gtk/gtk_custom_menu_item.cc (revision 91773)
+++ chrome/browser/ui/gtk/gtk_custom_menu_item.cc (working copy)
@@ -171,7 +171,7 @@
static gint gtk_custom_menu_item_expose(GtkWidget* widget,
GdkEventExpose* event) {
- if (gtk_widget_get_visible(widget) &&
+ if (GTK_WIDGET_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,7 +212,8 @@
int height = last_button->allocation.height;
gtk_paint_box(hbox->style, hbox->window,
- gtk_widget_get_state(current_button),
+ static_cast<GtkStateType>(
+ GTK_WIDGET_STATE(current_button)),
GTK_SHADOW_OUT,
&current_button->allocation, hbox, "button",
x, y, width, height);
@@ -252,7 +253,8 @@
gtk_bin_get_child(GTK_BIN(current_button))->allocation;
int half_offset = widget->style->xthickness / 2;
gtk_paint_vline(widget->style, widget->window,
- gtk_widget_get_state(current_button),
+ static_cast<GtkStateType>(
+ GTK_WIDGET_STATE(current_button)),
&event->area, widget, "button",
child_alloc.y,
child_alloc.y + child_alloc.height,
Property changes on: chrome/browser/ui/gtk/gtk_custom_menu_item.cc
___________________________________________________________________
Added: svn:mergeinfo
« 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