15 |
|
|
16 |
ManagedWindow::ManagedWindow() : m_listenOnConfigureEvents(false) |
ManagedWindow::ManagedWindow() : m_listenOnConfigureEvents(false) |
17 |
{ |
{ |
18 |
|
if (!Settings::singleton()->autoRestoreWindowDimension) |
19 |
|
return; |
20 |
|
|
21 |
Glib::signal_idle().connect_once( // timeout starts given amount of ms after the main loop became idle again ... |
Glib::signal_idle().connect_once( // timeout starts given amount of ms after the main loop became idle again ... |
22 |
sigc::mem_fun(*this, &ManagedWindow::restoreWindowDimensions), |
sigc::mem_fun(*this, &ManagedWindow::restoreWindowDimensions), |
23 |
0 |
0 |
104 |
// } |
// } |
105 |
|
|
106 |
void ManagedDialog::initManagedDialog() { |
void ManagedDialog::initManagedDialog() { |
107 |
|
if (!Settings::singleton()->autoRestoreWindowDimension) |
108 |
|
return; |
109 |
|
|
110 |
Glib::signal_idle().connect_once( // timeout starts given amount of ms after the main loop became idle again ... |
Glib::signal_idle().connect_once( // timeout starts given amount of ms after the main loop became idle again ... |
111 |
sigc::mem_fun(*this, &ManagedDialog::restoreWindowDimensions), |
sigc::mem_fun(*this, &ManagedDialog::restoreWindowDimensions), |
112 |
0 |
0 |
143 |
); |
); |
144 |
m_eventThrottleTimer->attach(Glib::MainContext::get_default()); |
m_eventThrottleTimer->attach(Glib::MainContext::get_default()); |
145 |
} |
} |
146 |
return Gtk::Window::on_configure_event(e); |
return Gtk::Dialog::on_configure_event(e); |
147 |
} |
} |
148 |
|
|
149 |
bool ManagedDialog::saveWindowDimensions(int x, int y, int w, int h) { |
bool ManagedDialog::saveWindowDimensions(int x, int y, int w, int h) { |