T: NO-OP whitespace
This commit is contained in:
parent
8807a62dd5
commit
609d16628c
@ -84,7 +84,7 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
{
|
||||
set_position (WIN_POS_CENTER);
|
||||
get_vbox()->set_spacing (6);
|
||||
get_vbox()->pack_start ( _open_table, false, false);
|
||||
get_vbox()->pack_start (_open_table, false, false);
|
||||
|
||||
string image_path;
|
||||
Searchpath rc (ARDOUR::ardour_data_search_path());
|
||||
@ -92,12 +92,12 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
if (find_file (rc, "harrison.png", image_path)) {
|
||||
Gtk::Image* image;
|
||||
if ((image = manage (new Gtk::Image (image_path))) != 0) {
|
||||
_open_table.attach ( *image, 0,1, 0,1, FILL, FILL, 0, 6);
|
||||
_open_table.attach (*image, 0,1, 0,1, FILL, FILL, 0, 6);
|
||||
}
|
||||
}
|
||||
|
||||
/* Possible update message */
|
||||
if (ARDOUR_UI::instance()->announce_string() != "" ) {
|
||||
if (ARDOUR_UI::instance()->announce_string() != "") {
|
||||
_info_box.set_border_width (12);
|
||||
_info_box.set_spacing (6);
|
||||
|
||||
@ -108,14 +108,14 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
|
||||
ArdourButton *updates_button = manage (new ArdourButton (_("Check the website for more...")));
|
||||
|
||||
updates_button->signal_clicked.connect (mem_fun(*this, &SessionDialog::updates_button_clicked) );
|
||||
updates_button->signal_clicked.connect (mem_fun(*this, &SessionDialog::updates_button_clicked));
|
||||
set_tooltip (*updates_button, _("Click to open the program website in your web browser"));
|
||||
|
||||
_info_box.pack_start (*updates_button, false, false);
|
||||
|
||||
_info_box.show_all ();
|
||||
}
|
||||
_open_table.attach ( _info_box, 1,3, 0,1, FILL, FILL, 0, 6);
|
||||
_open_table.attach (_info_box, 1,3, 0,1, FILL, FILL, 0, 6);
|
||||
|
||||
new_button.set_text("NEW");
|
||||
new_button.set_name ("transport option button");
|
||||
@ -141,18 +141,17 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
|
||||
ArdourHSpacer *spacer = manage (new ArdourHSpacer(1.0));
|
||||
spacer->set_size_request(-1, 12);
|
||||
_open_table.attach (*spacer, 0,3, 1,2, FILL|EXPAND, SHRINK, 0, 6);
|
||||
_open_table.attach (*spacer, 0,3, 1,2, FILL|EXPAND, SHRINK, 0, 6);
|
||||
|
||||
_open_table.attach ( new_button, 0,1, 2,3, FILL, FILL);
|
||||
_open_table.attach ( recent_button, 0,1, 3,4, FILL, FILL);
|
||||
_open_table.attach ( existing_button, 0,1, 4,5, FILL, FILL);
|
||||
_open_table.attach ( prefs_button, 0,1, 5,6, FILL, FILL);
|
||||
_open_table.attach (new_button, 0,1, 2,3, FILL, FILL);
|
||||
_open_table.attach (recent_button, 0,1, 3,4, FILL, FILL);
|
||||
_open_table.attach (existing_button, 0,1, 4,5, FILL, FILL);
|
||||
_open_table.attach (prefs_button, 0,1, 5,6, FILL, FILL);
|
||||
|
||||
Label *vspacer = manage (new Label());
|
||||
vspacer->set_size_request(8, -1);
|
||||
_open_table.attach (*vspacer, 1,2, 1,6, FILL, FILL|EXPAND, 0, 0);
|
||||
|
||||
_open_table.attach (_tabs, 2,3, 2,6, FILL|EXPAND, FILL|EXPAND, 0, 0);
|
||||
_open_table.attach (*vspacer, 1,2, 1,6, FILL, FILL|EXPAND, 0, 0);
|
||||
_open_table.attach (_tabs, 2,3, 2,6, FILL|EXPAND, FILL|EXPAND, 0, 0);
|
||||
|
||||
_tabs.set_show_tabs(false);
|
||||
_tabs.set_show_border(false);
|
||||
@ -194,7 +193,6 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
if (cnt > 0) {
|
||||
recent_scroller.show();
|
||||
recent_label.show ();
|
||||
|
||||
recent_scroller.set_size_request (-1, 300);
|
||||
} else {
|
||||
recent_scroller.hide();
|
||||
@ -232,10 +230,12 @@ SessionDialog::on_show ()
|
||||
void
|
||||
SessionDialog::tab_page_switched(GtkNotebookPage*, guint page_number)
|
||||
{
|
||||
new_button.set_active_state ( page_number==0 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off );
|
||||
recent_button.set_active_state ( page_number==1 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
/* clang-format off */
|
||||
new_button.set_active_state (page_number==0 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
recent_button.set_active_state (page_number==1 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
existing_button.set_active_state (page_number==2 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
prefs_button.set_active_state ( page_number==3 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
prefs_button.set_active_state (page_number==3 ? Gtkmm2ext::ExplicitActive : Gtkmm2ext::Off);
|
||||
/* clang-format on */
|
||||
|
||||
//check the status of each tab and sensitize the 'open' button appropriately
|
||||
open_button->set_sensitive(false);
|
||||
@ -1100,7 +1100,7 @@ SessionDialog::recent_row_activated (const Gtk::TreePath&, Gtk::TreeViewColumn*)
|
||||
bool
|
||||
SessionDialog::recent_button_press (GdkEventButton* ev)
|
||||
{
|
||||
if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3) ) {
|
||||
if ((ev->type == GDK_BUTTON_PRESS) && (ev->button == 3)) {
|
||||
|
||||
TreeModel::Path path;
|
||||
TreeViewColumn* column;
|
||||
@ -1189,7 +1189,7 @@ SessionDialog::info_scroller_update()
|
||||
info_scroller_count++;
|
||||
|
||||
char buf[512];
|
||||
snprintf (buf, std::min(info_scroller_count,sizeof(buf)-1), "%s", ARDOUR_UI::instance()->announce_string().c_str() );
|
||||
snprintf (buf, std::min(info_scroller_count,sizeof(buf)-1), "%s", ARDOUR_UI::instance()->announce_string().c_str());
|
||||
buf[info_scroller_count] = 0;
|
||||
info_scroller_label.set_text (buf);
|
||||
info_scroller_label.show();
|
||||
|
Loading…
Reference in New Issue
Block a user