mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
add visibility tracking for main window
This commit is contained in:
parent
4963d65206
commit
2a25d25d34
2 changed files with 8 additions and 0 deletions
|
|
@ -252,6 +252,7 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
|
||||||
, video_timeline(0)
|
, video_timeline(0)
|
||||||
, global_actions (X_("global"))
|
, global_actions (X_("global"))
|
||||||
, ignore_dual_punch (false)
|
, ignore_dual_punch (false)
|
||||||
|
, main_window_visibility (0)
|
||||||
, editor (0)
|
, editor (0)
|
||||||
, mixer (0)
|
, mixer (0)
|
||||||
, nsm (0)
|
, nsm (0)
|
||||||
|
|
@ -326,6 +327,10 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
|
||||||
theArdourUI = this;
|
theArdourUI = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* track main window visibility */
|
||||||
|
|
||||||
|
main_window_visibility = new VisibilityTracker (_main_window);
|
||||||
|
|
||||||
/* stop libxml from spewing to stdout/stderr */
|
/* stop libxml from spewing to stdout/stderr */
|
||||||
|
|
||||||
xmlSetGenericErrorFunc (this, libxml_generic_error_func);
|
xmlSetGenericErrorFunc (this, libxml_generic_error_func);
|
||||||
|
|
@ -683,6 +688,7 @@ ARDOUR_UI::~ARDOUR_UI ()
|
||||||
delete mixer; mixer = 0;
|
delete mixer; mixer = 0;
|
||||||
delete nsm; nsm = 0;
|
delete nsm; nsm = 0;
|
||||||
delete gui_object_state; gui_object_state = 0;
|
delete gui_object_state; gui_object_state = 0;
|
||||||
|
delete main_window_visibility;
|
||||||
FastMeter::flush_pattern_cache ();
|
FastMeter::flush_pattern_cache ();
|
||||||
PixFader::flush_pattern_cache ();
|
PixFader::flush_pattern_cache ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,7 @@
|
||||||
#include "gtkmm2ext/stateful_button.h"
|
#include "gtkmm2ext/stateful_button.h"
|
||||||
#include "gtkmm2ext/bindable_button.h"
|
#include "gtkmm2ext/bindable_button.h"
|
||||||
#include "gtkmm2ext/bindings.h"
|
#include "gtkmm2ext/bindings.h"
|
||||||
|
#include "gtkmm2ext/visibility_tracker.h"
|
||||||
|
|
||||||
#include "ardour/ardour.h"
|
#include "ardour/ardour.h"
|
||||||
#include "ardour/types.h"
|
#include "ardour/types.h"
|
||||||
|
|
@ -377,6 +378,7 @@ protected:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Gtk::Window _main_window;
|
Gtk::Window _main_window;
|
||||||
|
Gtkmm2ext::VisibilityTracker* main_window_visibility;
|
||||||
Gtk::VBox main_vpacker;
|
Gtk::VBox main_vpacker;
|
||||||
Gtk::HBox status_bar_hpacker;
|
Gtk::HBox status_bar_hpacker;
|
||||||
Gtk::Notebook _tabs;
|
Gtk::Notebook _tabs;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue