make link (rubberband) work
[ardour.git] / gtk2_ardour / ardour_ui_dialogs.cc
index 0d410cd526779b2ae26d5d25b054e6c9f18fb848..f87ce85476438c0612de095b21e066c372ffa87c 100644 (file)
@@ -80,7 +80,6 @@ ARDOUR_UI::connect_to_session (Session *s)
 
        /* there are never any selections on startup */
 
-       ActionManager::set_sensitive (ActionManager::region_selection_sensitive_actions, false);
        ActionManager::set_sensitive (ActionManager::time_selection_sensitive_actions, false);
        ActionManager::set_sensitive (ActionManager::track_selection_sensitive_actions, false);
        ActionManager::set_sensitive (ActionManager::line_selection_sensitive_actions, false);
@@ -182,6 +181,7 @@ ARDOUR_UI::unload_session (bool hide_stuff)
        if (hide_stuff) {
                editor->hide ();
                mixer->hide ();
+               theme_manager->hide ();
        }
 
        second_connection.disconnect ();
@@ -433,3 +433,24 @@ ARDOUR_UI::handle_locations_change (Location* ignored)
                }
        }
 }
+
+bool
+ARDOUR_UI::main_window_state_event_handler (GdkEventWindowState* ev, bool window_was_editor)
+{
+       if (window_was_editor) {
+
+               if ((ev->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) && 
+                   (ev->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)) {
+                       float_big_clock (editor);
+               }
+
+       } else {
+
+               if ((ev->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) && 
+                   (ev->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)) {
+                       float_big_clock (mixer);
+               }
+       }
+
+       return false;
+}