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

Unified Diff: chrome/browser/ui/gtk/find_bar_gtk.cc

Issue 8897006: GTK: Remove deprecated methods and replace them with the new standard calls. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Oh, that's what the conflict was. Remove double gtk/gtk.h Created 9 years 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/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/find_bar_gtk.cc
diff --git a/chrome/browser/ui/gtk/find_bar_gtk.cc b/chrome/browser/ui/gtk/find_bar_gtk.cc
index 90ad46eb92a8a0dd040b8f03cbc7b8be2e73f1ea..4b9b317068c1083458c86872b19a9ea67600dc1e 100644
--- a/chrome/browser/ui/gtk/find_bar_gtk.cc
+++ b/chrome/browser/ui/gtk/find_bar_gtk.cc
@@ -342,7 +342,7 @@ void FindBarGtk::SetFocusAndSelection() {
StoreOutsideFocus();
gtk_widget_grab_focus(text_entry_);
// Select all the text.
- gtk_entry_select_region(GTK_ENTRY(text_entry_), 0, -1);
+ gtk_editable_select_region(GTK_EDITABLE(text_entry_), 0, -1);
}
void FindBarGtk::ClearResults(const FindNotificationDetails& results) {
@@ -391,7 +391,7 @@ void FindBarGtk::UpdateUIForFindResult(const FindNotificationDetails& result,
std::string entry_text(gtk_entry_get_text(GTK_ENTRY(text_entry_)));
if (entry_text != find_text_utf8) {
SetFindText(find_text);
- gtk_entry_select_region(GTK_ENTRY(text_entry_), 0, -1);
+ gtk_editable_select_region(GTK_EDITABLE(text_entry_), 0, -1);
}
if (!find_text.empty() && have_valid_range) {
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/gtk/gtk_chrome_cookie_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698