diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-27 23:10:43 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-27 23:10:43 +0000 |
commit | 2f3d9d5e876c6a51c9c0e55ebf763a9f8833ae96 (patch) | |
tree | 20ab7d19b371c95402f9c0b8df2bfcc0554622fc /chrome/browser/gtk/keyword_editor_view.cc | |
parent | 0922baeab1134628d5898a21dbbd8973647caae0 (diff) | |
download | chromium_src-2f3d9d5e876c6a51c9c0e55ebf763a9f8833ae96.zip chromium_src-2f3d9d5e876c6a51c9c0e55ebf763a9f8833ae96.tar.gz chromium_src-2f3d9d5e876c6a51c9c0e55ebf763a9f8833ae96.tar.bz2 |
Add unittest for Gtk search engine manager dialog.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/180012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/keyword_editor_view.cc')
-rw-r--r-- | chrome/browser/gtk/keyword_editor_view.cc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/chrome/browser/gtk/keyword_editor_view.cc b/chrome/browser/gtk/keyword_editor_view.cc index 763ab32..f2dc7f5 100644 --- a/chrome/browser/gtk/keyword_editor_view.cc +++ b/chrome/browser/gtk/keyword_editor_view.cc @@ -28,18 +28,6 @@ const int kDialogDefaultHeight = 450; const int kFirstGroupRowOffset = 2; const int kSecondGroupRowOffset = 5; -// Column ids for |list_store_|. -enum { - COL_FAVICON, - COL_TITLE, - COL_KEYWORD, - COL_IS_HEADER, - COL_IS_SEPARATOR, - COL_WEIGHT, - COL_WEIGHT_SET, - COL_COUNT, -}; - KeywordEditorView* instance_ = NULL; } // namespace @@ -55,6 +43,7 @@ void KeywordEditorView::Show(Profile* profile) { gtk_window_present(GTK_WINDOW(instance_->dialog_)); } else { instance_ = new KeywordEditorView(profile); + gtk_widget_show_all(instance_->dialog_); } } @@ -196,8 +185,6 @@ void KeywordEditorView::Init() { EnableControls(); - gtk_widget_show_all(dialog_); - g_signal_connect(dialog_, "response", G_CALLBACK(OnResponse), this); g_signal_connect(dialog_, "destroy", G_CALLBACK(OnWindowDestroy), this); } @@ -411,7 +398,7 @@ gboolean KeywordEditorView::OnCheckRowIsSeparator(GtkTreeModel* model, return is_separator; } -//static +// static gboolean KeywordEditorView::OnSelectionFilter(GtkTreeSelection *selection, GtkTreeModel *model, GtkTreePath *path, |