/[svn]/gigedit/trunk/src/gigedit/ManagedWindow.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/ManagedWindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2917 by schoenebeck, Sat Apr 30 14:42:14 2016 UTC revision 2918 by schoenebeck, Wed May 18 10:10:25 2016 UTC
# Line 15  Line 15 
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
# Line 101  ManagedDialog::ManagedDialog(const Glib: Line 104  ManagedDialog::ManagedDialog(const Glib:
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
# Line 137  bool ManagedDialog::on_configure_event(G Line 143  bool ManagedDialog::on_configure_event(G
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) {

Legend:
Removed from v.2917  
changed lines
  Added in v.2918

  ViewVC Help
Powered by ViewVC