- Make HoltContainer and StatisticsContainer keep above the main

application window, but not above every window in the desktop


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1119 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-12 21:48:45 +00:00
parent c77de95412
commit cf38e2078b
3 changed files with 8 additions and 3 deletions

View File

@ -650,13 +650,14 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
simulation_jump_to->signal_clicked().connect(sigc::mem_fun(*this, &GuiBuilder::on_simulation_jump_to_clicked));
Window& main_window = get_initial_window();
// HoltGraph container window
_holt_container.set_keep_above();
_holt_container.set_transient_for(main_window);
_holt_container.get_holt_widget().set_show_threads(_show_threads);
_holt_container.show();
// Statistics container window
_statistics_container.set_keep_above();
_statistics_container.set_transient_for(main_window);
_statistics_container.show();
}

View File

@ -33,10 +33,12 @@ using namespace Glib;
HoltContainerWindow::HoltContainerWindow(Simulation& simulation)
: _holt_widget(simulation), _auto_dispose(true)
: Window(), _holt_widget(simulation), _auto_dispose(true)
{
// This just sets the title of our new window.
set_title(_("Holt Graph"));
set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY);
add(_holt_widget);
_holt_widget.set_scaling_mode(CairoWidget::scaling_min);
_holt_widget.show();

View File

@ -28,6 +28,8 @@ StatisticsContainerWindow::StatisticsContainerWindow()
{
// This just sets the title of our new window.
set_title(_("Simulation Statistics"));
set_type_hint(Gdk::WINDOW_TYPE_HINT_UTILITY);
_scrolled_tabular.add(_tabular_schedulables_statistics_widget);
add(_scrolled_tabular);
_scrolled_tabular.show();