summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-07 01:56:05 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-07 01:56:05 +0000
commit13262b83ce51432125db9082a60a603753519f84 (patch)
tree188e04c8bb0c2d6365bd7f46fce2db3a9c02cc08
parentbd9e05983f0f5bc4a27c9cc2068b7ed5cbb4e164 (diff)
downloadchromium_src-13262b83ce51432125db9082a60a603753519f84.zip
chromium_src-13262b83ce51432125db9082a60a603753519f84.tar.gz
chromium_src-13262b83ce51432125db9082a60a603753519f84.tar.bz2
Gtk Cookie Manager polish.
Make dialog wider, set first column width to fixed (but resizable), set initial sort order. BUG=17919 Review URL: http://codereview.chromium.org/164125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22713 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/gtk/options/cookies_view.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/gtk/options/cookies_view.cc b/chrome/browser/gtk/options/cookies_view.cc
index 31bcdb1..4adff66 100644
--- a/chrome/browser/gtk/options/cookies_view.cc
+++ b/chrome/browser/gtk/options/cookies_view.cc
@@ -21,8 +21,9 @@
namespace {
// Initial size for dialog.
-const int kDialogDefaultWidth = 450;
+const int kDialogDefaultWidth = 550;
const int kDialogDefaultHeight = 550;
+const int kSiteColumnInitialSize = 300;
// Delay after entering filter text before filtering occurs.
const int kSearchFilterDelayMs = 500;
@@ -165,6 +166,8 @@ void CookiesView::Init() {
gtk_tree_sortable_set_sort_func(GTK_TREE_SORTABLE(list_sort_),
COL_COOKIE_NAME, CompareCookieName, this,
NULL);
+ gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(list_sort_),
+ COL_SITE, GTK_SORT_ASCENDING);
tree_ = gtk_tree_view_new_with_model(GTK_TREE_MODEL(list_sort_));
gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree_), TRUE);
gtk_container_add(GTK_CONTAINER(scroll_window), tree_);
@@ -182,6 +185,9 @@ void CookiesView::Init() {
site_column, l10n_util::GetStringUTF8(
IDS_COOKIES_DOMAIN_COLUMN_HEADER).c_str());
gtk_tree_view_column_set_sort_column_id(site_column, COL_SITE);
+ gtk_tree_view_column_set_sizing(site_column, GTK_TREE_VIEW_COLUMN_FIXED);
+ gtk_tree_view_column_set_resizable(site_column, TRUE);
+ gtk_tree_view_column_set_fixed_width(site_column, kSiteColumnInitialSize);
gtk_tree_view_append_column(GTK_TREE_VIEW(tree_), site_column);
GtkTreeViewColumn* name_column = gtk_tree_view_column_new_with_attributes(