summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 22:17:56 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-07 22:17:56 +0000
commit57d49a213c0b00a6c3fcbb283c5a1cdb4a3b7dd1 (patch)
treeb138699c41dd118751d3422ad3c5df9d9134ad86 /chrome/browser/gtk
parentba051e315ca1c305a46484f2c8f282b3ec149e7a (diff)
downloadchromium_src-57d49a213c0b00a6c3fcbb283c5a1cdb4a3b7dd1.zip
chromium_src-57d49a213c0b00a6c3fcbb283c5a1cdb4a3b7dd1.tar.gz
chromium_src-57d49a213c0b00a6c3fcbb283c5a1cdb4a3b7dd1.tar.bz2
Makes MainMenu a singleton and loaded 5 seconds after startup. This is
done so that we can show the menu quickly. This is a hack. If the menu remains html we'll pull the html into Chrome and won't need this. This is just for a better prototype experience. BUG=24147 TEST=make sure the main menu still works. Review URL: http://codereview.chromium.org/271004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/browser_window_gtk.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 0f54c18..d7d7bfb 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -1613,6 +1613,8 @@ void BrowserWindowGtk::InitWidgets() {
gtk_box_pack_start(GTK_BOX(titlebar_hbox), main_menu_button->widget(),
FALSE, FALSE, 0);
+ MainMenu::ScheduleCreation();
+
if (has_compact_nav_bar) {
navbar_hbox = gtk_hbox_new(FALSE, 0);
gtk_widget_show(navbar_hbox);