Use non-deprecated Gtk::Widget::get_visible API in gtk2_ardour
This commit is contained in:
parent
b8cc0ef948
commit
fa6777f7ce
|
@ -96,7 +96,7 @@ ArdourDialog::on_show ()
|
|||
|
||||
Splash* spl = Splash::instance();
|
||||
|
||||
if (spl && spl->is_visible()) {
|
||||
if (spl && spl->get_visible()) {
|
||||
spl->pop_back_for (*this);
|
||||
_splash_pushed = true;
|
||||
}
|
||||
|
|
|
@ -1175,7 +1175,7 @@ ARDOUR_UI::starting ()
|
|||
|
||||
BootMessage (string_compose (_("%1 is ready for use"), PROGRAM_NAME));
|
||||
|
||||
if (splash && splash->is_visible()) {
|
||||
if (splash && splash->get_visible()) {
|
||||
// in 1 second, hide the splash screen
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
|
||||
}
|
||||
|
@ -1820,7 +1820,7 @@ ARDOUR_UI::open_recent_session ()
|
|||
|
||||
can_return = false;
|
||||
}
|
||||
if (splash && splash->is_visible()) {
|
||||
if (splash && splash->get_visible()) {
|
||||
// in 1 second, hide the splash screen
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
|
||||
}
|
||||
|
@ -3436,7 +3436,7 @@ ARDOUR_UI::close_session()
|
|||
if (get_session_parameters (true, false)) {
|
||||
exit (1);
|
||||
}
|
||||
if (splash && splash->is_visible()) {
|
||||
if (splash && splash->get_visible()) {
|
||||
// in 1 second, hide the splash screen
|
||||
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
|
||||
}
|
||||
|
@ -4108,7 +4108,7 @@ ARDOUR_UI::add_route ()
|
|||
return;
|
||||
}
|
||||
|
||||
if (add_route_dialog->is_visible()) {
|
||||
if (add_route_dialog->get_visible()) {
|
||||
/* we're already doing this */
|
||||
return;
|
||||
}
|
||||
|
@ -4434,7 +4434,7 @@ ARDOUR_UI::add_video (Gtk::Window* float_window)
|
|||
add_video_dialog->set_transient_for (*float_window);
|
||||
}
|
||||
|
||||
if (add_video_dialog->is_visible()) {
|
||||
if (add_video_dialog->get_visible()) {
|
||||
/* we're already doing this */
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -960,7 +960,7 @@ AudioClock::session_configuration_changed (std::string p)
|
|||
void
|
||||
AudioClock::set (framepos_t when, bool force, framecnt_t offset)
|
||||
{
|
||||
if ((!force && !is_visible()) || _session == 0) {
|
||||
if ((!force && !get_visible()) || _session == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -1929,7 +1929,7 @@ Editor::add_region_context_items (Menu_Helpers::MenuList& edit_items, boost::sha
|
|||
const framepos_t position = get_preferred_edit_position (EDIT_IGNORE_NONE, true);
|
||||
|
||||
edit_items.push_back (*_popup_region_menu_item);
|
||||
if (Config->get_layer_model() == Manual && track->playlist()->count_regions_at (position) > 1 && (layering_order_editor == 0 || !layering_order_editor->is_visible ())) {
|
||||
if (Config->get_layer_model() == Manual && track->playlist()->count_regions_at (position) > 1 && (layering_order_editor == 0 || !layering_order_editor->get_visible ())) {
|
||||
edit_items.push_back (*manage (_region_actions->get_action ("choose-top-region-context-menu")->create_menu_item ()));
|
||||
}
|
||||
edit_items.push_back (SeparatorElem());
|
||||
|
@ -5864,7 +5864,7 @@ Editor::change_region_layering_order (bool from_context_menu)
|
|||
void
|
||||
Editor::update_region_layering_order_editor ()
|
||||
{
|
||||
if (layering_order_editor && layering_order_editor->is_visible ()) {
|
||||
if (layering_order_editor && layering_order_editor->get_visible ()) {
|
||||
change_region_layering_order (true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ Editor::reset_controls_layout_width ()
|
|||
edit_controls_vbox.size_request (req);
|
||||
w = req.width;
|
||||
|
||||
if (_group_tabs->is_visible()) {
|
||||
if (_group_tabs->get_visible()) {
|
||||
_group_tabs->size_request (req);
|
||||
w += req.width;
|
||||
}
|
||||
|
|
|
@ -555,7 +555,7 @@ MonitorSection::update_processor_box ()
|
|||
toggle_processorbox_button.set_name (X_("monitor section processors toggle"));
|
||||
}
|
||||
|
||||
if (insert_box->is_visible() == show_processor_box) {
|
||||
if (insert_box->get_visible() == show_processor_box) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ PluginEqGui::stop_updating()
|
|||
void
|
||||
PluginEqGui::start_updating()
|
||||
{
|
||||
if (!_update_connection.connected() && is_visible()) {
|
||||
if (!_update_connection.connected() && get_visible()) {
|
||||
_update_connection = Glib::signal_timeout().connect( sigc::mem_fun(this, &PluginEqGui::timeout_callback), 250);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1560,7 +1560,7 @@ PluginPinWidget::connect_sidechain ()
|
|||
_sidechain_selector = new IOSelectorWindow (_session, _pi->sidechain_input ());
|
||||
}
|
||||
|
||||
if (_sidechain_selector->is_visible ()) {
|
||||
if (_sidechain_selector->get_visible ()) {
|
||||
_sidechain_selector->get_toplevel ()->get_window ()->raise ();
|
||||
} else {
|
||||
_sidechain_selector->present ();
|
||||
|
|
|
@ -658,7 +658,7 @@ ProcessorEntry::add_control_state (XMLNode* node) const
|
|||
if (_plugin_display) {
|
||||
XMLNode* c = new XMLNode (X_("Object"));
|
||||
c->add_property (X_("id"), X_("InlineDisplay"));
|
||||
c->add_property (X_("visible"), _plugin_display->is_visible ());
|
||||
c->add_property (X_("visible"), _plugin_display->get_visible ());
|
||||
node->add_child_nocopy (*c);
|
||||
}
|
||||
}
|
||||
|
@ -708,7 +708,7 @@ ProcessorEntry::build_controls_menu ()
|
|||
if (_plugin_display) {
|
||||
items.push_back (CheckMenuElem (_("Inline Display")));
|
||||
Gtk::CheckMenuItem* c = dynamic_cast<Gtk::CheckMenuItem*> (&items.back ());
|
||||
c->set_active (_plugin_display->is_visible ());
|
||||
c->set_active (_plugin_display->get_visible ());
|
||||
c->signal_toggled().connect (sigc::mem_fun (*this, &ProcessorEntry::toggle_inline_display_visibility));
|
||||
items.push_back (SeparatorElem ());
|
||||
}
|
||||
|
@ -738,7 +738,7 @@ ProcessorEntry::build_controls_menu ()
|
|||
void
|
||||
ProcessorEntry::toggle_inline_display_visibility ()
|
||||
{
|
||||
if (_plugin_display->is_visible ()) {
|
||||
if (_plugin_display->get_visible ()) {
|
||||
_plugin_display->hide();
|
||||
} else {
|
||||
_plugin_display->show();
|
||||
|
@ -1631,7 +1631,7 @@ ProcessorEntry::PluginDisplay::update_height_alloc (uint32_t inline_height)
|
|||
Gtk::ScrolledWindow* sw = dynamic_cast<Gtk::ScrolledWindow*> (pr);
|
||||
if (sw) {
|
||||
const Gtk::VScrollbar* vsb = sw->get_vscrollbar();
|
||||
sc = vsb && vsb->is_visible();
|
||||
sc = vsb && vsb->get_visible();
|
||||
}
|
||||
|
||||
if (shm != _cur_height) {
|
||||
|
|
|
@ -509,7 +509,7 @@ RouteUI::edit_output_configuration ()
|
|||
output_selector = new IOSelectorWindow (_session, output);
|
||||
}
|
||||
|
||||
if (output_selector->is_visible()) {
|
||||
if (output_selector->get_visible()) {
|
||||
output_selector->get_toplevel()->get_window()->raise();
|
||||
} else {
|
||||
output_selector->present ();
|
||||
|
@ -525,7 +525,7 @@ RouteUI::edit_input_configuration ()
|
|||
input_selector = new IOSelectorWindow (_session, _route->input());
|
||||
}
|
||||
|
||||
if (input_selector->is_visible()) {
|
||||
if (input_selector->get_visible()) {
|
||||
input_selector->get_toplevel()->get_window()->raise();
|
||||
} else {
|
||||
input_selector->present ();
|
||||
|
@ -551,8 +551,8 @@ RouteUI::solo_press(GdkEventButton* ev)
|
|||
|
||||
if (Keyboard::is_context_menu_event (ev)) {
|
||||
|
||||
if (! (solo_isolated_led && solo_isolated_led->is_visible()) ||
|
||||
! (solo_safe_led && solo_safe_led->is_visible())) {
|
||||
if (! (solo_isolated_led && solo_isolated_led->get_visible()) ||
|
||||
! (solo_safe_led && solo_safe_led->get_visible())) {
|
||||
|
||||
if (solo_menu == 0) {
|
||||
build_solo_menu ();
|
||||
|
@ -1667,7 +1667,7 @@ RouteUI::toggle_comment_editor ()
|
|||
// return;
|
||||
// }
|
||||
|
||||
if (comment_window && comment_window->is_visible ()) {
|
||||
if (comment_window && comment_window->get_visible ()) {
|
||||
comment_window->hide ();
|
||||
} else {
|
||||
open_comment_editor ();
|
||||
|
|
Loading…
Reference in New Issue
Block a user