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

Unified Diff: chrome/browser/gtk/options/cookies_view.cc

Issue 164125: Gtk Cookie Manager polish. (Closed)
Patch Set: Created 11 years, 4 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 31bcdb14666e3a022a35dbac9b0c907f90cdb351..4adff660fc7cc38f6d8fbad88dd57874564b51c6 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(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698