From 30bcc77df38a8775b28f6628a6f4270658b171e5 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Thu, 19 Mar 2009 23:54:35 +0000 Subject: Now have a TextButton rendering (sort of; doesn't respond to mouse events so I don't know if it'll draw the border correctly). Now with fixes to compile under Windows. Review URL: http://codereview.chromium.org/42427 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12172 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/browser_window_gtk.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser') diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index f938005..43b620e 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -24,6 +24,7 @@ #include "chrome/browser/tab_contents/web_contents.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/resource_bundle.h" +#include "chrome/views/controls/button/text_button.h" #include "grit/theme_resources.h" namespace { @@ -155,6 +156,9 @@ BrowserWindowGtk::BrowserWindowGtk(Browser* browser) if (parsed_command_line.HasSwitch(switches::kViewsGtk)) { experimental_widget_.reset(new views::WidgetGtk()); experimental_widget_->Init(gfx::Rect(), false); + experimental_widget_->SetContentsView( + new views::TextButton(NULL, L"Button")); + gtk_box_pack_start(GTK_BOX(vbox_), experimental_widget_->GetNativeView(), false, false, 2); -- cgit v1.1