diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 19:15:00 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-05 19:15:00 +0000 |
commit | b7007b63f6e05341f9bdaec7ff08611ed8da3375 (patch) | |
tree | 7d7017b150c42822c97d6fb2e159cacb73f80b7c /chrome/browser/gtk/options/options_layout_gtk.cc | |
parent | 323f8b0c4be31eb820c0e916feab06a5d153d0fd (diff) | |
download | chromium_src-b7007b63f6e05341f9bdaec7ff08611ed8da3375.zip chromium_src-b7007b63f6e05341f9bdaec7ff08611ed8da3375.tar.gz chromium_src-b7007b63f6e05341f9bdaec7ff08611ed8da3375.tar.bz2 |
Improve resizing behavior of options window. Rather than extra whitespace at
the bottom, allow the custom url list to expand.
BUG=11507
Review URL: http://codereview.chromium.org/118203
Patch from Matt Mueller <mattm@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17753 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/options/options_layout_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/options/options_layout_gtk.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/gtk/options/options_layout_gtk.cc b/chrome/browser/gtk/options/options_layout_gtk.cc index e55f47c..c5bf4a68 100644 --- a/chrome/browser/gtk/options/options_layout_gtk.cc +++ b/chrome/browser/gtk/options/options_layout_gtk.cc @@ -30,7 +30,8 @@ OptionsLayoutBuilderGtk::OptionsLayoutBuilderGtk(int num_rows) { } void OptionsLayoutBuilderGtk::AddOptionGroup(const std::string& title, - GtkWidget* content) { + GtkWidget* content, + bool expandable) { GtkWidget* title_label = gtk_label_new(NULL); char* markup = g_markup_printf_escaped(kGroupTitleMarkup, title.c_str()); @@ -46,8 +47,8 @@ void OptionsLayoutBuilderGtk::AddOptionGroup(const std::string& title, gtk_container_add(GTK_CONTAINER(content_alignment), content); GtkWidget* group = gtk_vbox_new(FALSE, kOptionSpacing); - gtk_container_add(GTK_CONTAINER(group), title_alignment); + gtk_box_pack_start(GTK_BOX(group), title_alignment, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(group), content_alignment); - gtk_box_pack_start(GTK_BOX(page_), group, FALSE, FALSE, 0); + gtk_box_pack_start(GTK_BOX(page_), group, expandable, expandable, 0); } |