diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-21 19:21:26 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-21 19:21:26 +0000 |
commit | 68e072e1a4a3408bd4e2f3bde4dc89e028b0889e (patch) | |
tree | f775af846cb639edb41b8e29d28c5617aa9ae385 /chrome/browser/gtk/options/cookies_view.cc | |
parent | 123ab1e334b44051297c8d4242e81044478c6588 (diff) | |
download | chromium_src-68e072e1a4a3408bd4e2f3bde4dc89e028b0889e.zip chromium_src-68e072e1a4a3408bd4e2f3bde4dc89e028b0889e.tar.gz chromium_src-68e072e1a4a3408bd4e2f3bde4dc89e028b0889e.tar.bz2 |
[Linux] Select the first row in cookies table when the Cookies window is
opened.
Windows already does this.
BUG=None
TEST=compiled and tested on linux and covered by unit_tests.
Review URL: http://codereview.chromium.org/270063
Patch from Thiago Farina <thiago.farina@gmail.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/cookies_view.cc')
-rw-r--r-- | chrome/browser/gtk/options/cookies_view.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/gtk/options/cookies_view.cc b/chrome/browser/gtk/options/cookies_view.cc index 71bdc24..b2b16e0 100644 --- a/chrome/browser/gtk/options/cookies_view.cc +++ b/chrome/browser/gtk/options/cookies_view.cc @@ -234,6 +234,9 @@ void CookiesView::Init() { new gtk_tree::ModelAdapter(this, list_store_, cookies_table_model_.get())); cookies_table_adapter_->OnModelChanged(); + + if (cookies_table_model_->RowCount() > 0) + gtk_tree::SelectAndFocusRowNum(0, GTK_TREE_VIEW(tree_)); } void CookiesView::InitStylesAndShow() { |