remove reference to non-existent header
[ardour.git] / gtk2_ardour / window_manager.cc
index 629e24419b470716e51ae078e9c3609eb5ac5bfa..3ab9e1adff724f18a6707ad79a4b4ef0595e4945 100644 (file)
@@ -410,7 +410,7 @@ ProxyBase::hide ()
 }
 
 bool
-ProxyBase::handle_win_event (GdkEventAny *ev)
+ProxyBase::handle_win_event (GdkEventAny* /*ev*/)
 {
        hide();
        return true;
@@ -420,8 +420,10 @@ void
 ProxyBase::save_pos_and_size ()
 {
        Gtk::Window* win = get (false);
-       win->get_position (_x_off, _y_off);
-       win->get_size (_width, _height);
+       if (win) {
+               win->get_position (_x_off, _y_off);
+               win->get_size (_width, _height);
+       }
 }
 /*-----------------------*/