summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/find_bar_gtk.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 00:29:28 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-10 00:29:28 +0000
commit889e50af8cba9b18642aad3f035e152725043247 (patch)
tree36282c8e059c433a9dee8c8c62ce4f94931297f0 /chrome/browser/gtk/find_bar_gtk.h
parent33ca0b9040641b81c5fa160ac61fda56ca412ad9 (diff)
downloadchromium_src-889e50af8cba9b18642aad3f035e152725043247.zip
chromium_src-889e50af8cba9b18642aad3f035e152725043247.tar.gz
chromium_src-889e50af8cba9b18642aad3f035e152725043247.tar.bz2
Fix a linux bug in the find bar where we keep re-selecting text
on the page after closing the find bar. This happens because gtk_entry_set_text triggers a "changed" event in gtk. This doesn't happen in on the windows side. BUG=13344 Review URL: http://codereview.chromium.org/118457 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18006 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/find_bar_gtk.h')
-rw-r--r--chrome/browser/gtk/find_bar_gtk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/find_bar_gtk.h b/chrome/browser/gtk/find_bar_gtk.h
index 07171ed..6fab781 100644
--- a/chrome/browser/gtk/find_bar_gtk.h
+++ b/chrome/browser/gtk/find_bar_gtk.h
@@ -139,6 +139,10 @@ class FindBarGtk : public FindBar,
// Saves where the focus used to be whenever we get it.
FocusStoreGtk focus_store_;
+ // Keep track of the "changed" signal handler so we can unhook it when we
+ // don't need it.
+ unsigned int changed_handler_id_;
+
DISALLOW_COPY_AND_ASSIGN(FindBarGtk);
};