diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2009-03-21 10:28:42 +0000 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-06-17 08:54:14 +0100 |
commit | e71562619a67fa6823ba5d14c3df411b12fe192b (patch) | |
tree | 0a15ed3776700127cf09b764c3c9a2e1db5e1465 | |
parent | b96c707c12562aa614d9e870e1ba0bb9d945d8ce (diff) |
Create the event role widget early so that it's always top of the list.
-rw-r--r-- | src/pavucontrol.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc index faf7c89..fc17437 100644 --- a/src/pavucontrol.cc +++ b/src/pavucontrol.cc @@ -217,8 +217,6 @@ void ext_stream_restore_read_cb( return; } - w->createEventRoleWidget(); - if (eol > 0) { dec_outstanding(w); return; @@ -461,7 +459,11 @@ int main(int argc, char *argv[]) { ca_context_set_driver(ca_gtk_context_get(), "pulse"); - Gtk::Window* mainWindow = MainWindow::create(); + MainWindow* mainWindow = MainWindow::create(); + + /* Create event widget immediately so it's first in the list */ + mainWindow->createEventRoleWidget(); + pa_glib_mainloop *m = pa_glib_mainloop_new(g_main_context_default()); g_assert(m); |