mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
gtkmm2ext: use default window position in gtkmm2ext
This commit is contained in:
parent
92bbc7e9bc
commit
2b65a6dbe0
1 changed files with 4 additions and 3 deletions
|
|
@ -50,6 +50,7 @@
|
|||
#include "gtkmm2ext/activatable.h"
|
||||
#include "gtkmm2ext/actions.h"
|
||||
#include "gtkmm2ext/gui_thread.h"
|
||||
#include "gtkmm2ext/ui_config.h"
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
||||
|
|
@ -695,7 +696,7 @@ UI::toggle_errors ()
|
|||
{
|
||||
Glib::RefPtr<ToggleAction> tact = ActionManager::get_toggle_action (X_("Editor"), X_("toggle-log-window"));
|
||||
if (tact->get_active()) {
|
||||
errors->set_position (WIN_POS_MOUSE);
|
||||
errors->set_position (UIConfigurationBase::instance().get_default_window_position());
|
||||
errors->show ();
|
||||
} else {
|
||||
errors->hide ();
|
||||
|
|
@ -730,7 +731,7 @@ UI::handle_fatal (const char *message)
|
|||
title += ": Fatal Error";
|
||||
win.set_title (title.get_string());
|
||||
|
||||
win.set_position (WIN_POS_MOUSE);
|
||||
win.set_position (UIConfigurationBase::instance().get_default_window_position());
|
||||
win.set_border_width (12);
|
||||
|
||||
win.get_vbox()->pack_start (label, true, true);
|
||||
|
|
@ -760,7 +761,7 @@ UI::popup_error (const string& text)
|
|||
MessageDialog msg (text);
|
||||
msg.set_title (string_compose (_("I'm sorry %1, I can't do that"), g_get_user_name()));
|
||||
msg.set_wmclass (X_("error"), Glib::get_application_name());
|
||||
msg.set_position (WIN_POS_MOUSE);
|
||||
msg.set_position (UIConfigurationBase::instance().get_default_window_position());
|
||||
msg.run ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue