Exemplo n.º 1
0
 void SmartChessWindow::onToggleShowOptionsArea(
         Glib::RefPtr<Gtk::ToggleAction> toggleAction) {
     if(toggleAction->get_active())
         mOptionsGrid->show_all();
     else
         mOptionsGrid->hide();
 }
Exemplo n.º 2
0
    void SmartChessWindow::onToggleShowLogArea(
            Glib::RefPtr<Gtk::ToggleAction> toggleAction) {
        if(mLogArea == nullptr)
            return;

        if(toggleAction->get_active())
            mLogArea->show_all();
        else
            mLogArea->hide();
    }
Exemplo n.º 3
0
Gobby::ViewCommands::Fullscreen::Preserve::Preserve(
	const Glib::RefPtr<Gtk::ToggleAction>& action)
:
	m_action(action)
{
	// De-activate all the clutter, but remember their state before
	// we went fullscreen, so that we can restore when we leave
	// fullscreen again.
	m_value = action->get_active();
	action->set_active(false);

	action->signal_toggled().connect(sigc::mem_fun(
		*this, &Preserve::on_toggled));
}
Exemplo n.º 4
0
void Liveplay::on_live_play(Glib::RefPtr<Gtk::ToggleAction> act) {
    if (act->get_active()) {
        window->fullscreen();
        midi_conn = machine.signal_midi_changed().connect(
                        sigc::mem_fun(this, &Liveplay::add_midi_elements));
        add_midi_elements();
        window->show();
    } else {
        midi_conn.disconnect();
        keyswitch.deactivate();
        machine.tuner_switcher_deactivate();
        window->hide();
    }
    actions.livetuner->toggled();
}
Exemplo n.º 5
0
	void Main_window::Gui::on_show_categories_toggle_cb(Glib::RefPtr<Gtk::ToggleAction> action)
	{
		this->torrents_viewport->show_categories(action->get_active());
	}