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

Unified Diff: views/controls/combobox/native_combobox_gtk.cc

Issue 7791004: linux: delete code that worked around gtk <2.18 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « content/browser/renderer_host/gtk_key_bindings_handler.cc ('k') | views/controls/menu/native_menu_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/combobox/native_combobox_gtk.cc
diff --git a/views/controls/combobox/native_combobox_gtk.cc b/views/controls/combobox/native_combobox_gtk.cc
index 76e550d637d6ca4a05ab7f63f9f96920fc5103b0..3efdb75608154ae6d7395db8764ad6f31a2f4650 100644
--- a/views/controls/combobox/native_combobox_gtk.cc
+++ b/views/controls/combobox/native_combobox_gtk.cc
@@ -180,11 +180,7 @@ void NativeComboboxGtk::FocusedMenuItemChanged() {
GtkCellView* cell_view = GTK_CELL_VIEW(child);
GtkTreePath* path = gtk_cell_view_get_displayed_row(cell_view);
GtkTreeModel* model = NULL;
-#if GTK_CHECK_VERSION(2, 16, 0)
model = gtk_cell_view_get_model(cell_view);
-#else
- g_object_get(cell_view, "model", &model, NULL);
-#endif
GtkTreeIter iter;
if (model && gtk_tree_model_get_iter(model, &iter, path)) {
GValue value = { 0 };
« no previous file with comments | « content/browser/renderer_host/gtk_key_bindings_handler.cc ('k') | views/controls/menu/native_menu_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698