summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/notifications
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 23:22:30 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-03 23:22:30 +0000
commit6cde3da391926bbadbf9e73f5b6b757fa5194011 (patch)
tree508c857d25b3785c3d493162a1c60a4505c565de /chrome/browser/gtk/notifications
parent9cc62168225f4730079b504e376fd15efa7b933a (diff)
downloadchromium_src-6cde3da391926bbadbf9e73f5b6b757fa5194011.zip
chromium_src-6cde3da391926bbadbf9e73f5b6b757fa5194011.tar.gz
chromium_src-6cde3da391926bbadbf9e73f5b6b757fa5194011.tar.bz2
Initialize the GTK style for the balloon toolbar before creating any view objects. Otherwise the first balloon doesn't get the style applied, although subsequent balloons do.
BUG=37355 TEST=create several notifications on linux, compare visually Review URL: http://codereview.chromium.org/669001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/notifications')
-rw-r--r--chrome/browser/gtk/notifications/balloon_view_gtk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/notifications/balloon_view_gtk.cc b/chrome/browser/gtk/notifications/balloon_view_gtk.cc
index 8ab3555..dbae12a 100644
--- a/chrome/browser/gtk/notifications/balloon_view_gtk.cc
+++ b/chrome/browser/gtk/notifications/balloon_view_gtk.cc
@@ -227,6 +227,8 @@ void BalloonViewImpl::Show(Balloon* balloon) {
balloon_ = balloon;
frame_container_ = gtk_window_new(GTK_WINDOW_POPUP);
+ InitToolbarStyle();
+
// Construct the options menu.
options_menu_model_.reset(new NotificationOptionsMenuModel(balloon_));
options_menu_.reset(new MenuGtk(this, options_menu_model_.get()));
@@ -265,8 +267,6 @@ void BalloonViewImpl::Show(Balloon* balloon) {
gtk_container_add(GTK_CONTAINER(shelf_), alignment2);
gtk_widget_show_all(vbox);
- InitToolbarStyle();
-
g_signal_connect(frame_container_, "expose-event",
G_CALLBACK(HandleExposeThunk), this);