From 68e072e1a4a3408bd4e2f3bde4dc89e028b0889e Mon Sep 17 00:00:00 2001 From: "mattm@chromium.org" Date: Wed, 21 Oct 2009 19:21:26 +0000 Subject: [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 . git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29687 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/options/cookies_view.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/gtk/options/cookies_view.cc') 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() { -- cgit v1.1