experiments for the ardour startup dialog
This commit is contained in:
@@ -90,13 +90,6 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
Searchpath rc (ARDOUR::ardour_data_search_path());
|
||||
rc.add_subdirectory_to_paths ("resources");
|
||||
|
||||
if (find_file (rc, PROGRAM_NAME "-small-splash.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);
|
||||
}
|
||||
}
|
||||
|
||||
/* Possible update message */
|
||||
if (ARDOUR_UI::instance()->announce_string() != "") {
|
||||
_info_box.set_border_width (12);
|
||||
@@ -147,21 +140,27 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
grp->add_widget(existing_button);
|
||||
grp->add_widget(prefs_button);
|
||||
|
||||
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);
|
||||
if (find_file (rc, PROGRAM_NAME "-small-splash.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);
|
||||
grp->add_widget (*image);
|
||||
}
|
||||
}
|
||||
|
||||
_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 (new_button, 0,1, 1,2, FILL|EXPAND, FILL|EXPAND);
|
||||
_open_table.attach (recent_button, 0,1, 2,3, FILL|EXPAND, FILL|EXPAND);
|
||||
_open_table.attach (existing_button, 0,1, 3,4, FILL|EXPAND, FILL|EXPAND);
|
||||
#if 0
|
||||
_open_table.attach (prefs_button, 0,1, 5,6, FILL, FILL);
|
||||
#endif
|
||||
|
||||
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, 0,4, FILL, FILL|EXPAND, 0, 0);
|
||||
_open_table.attach (_tabs, 2,3, 0,4, FILL|EXPAND, FILL|EXPAND, 0, 0);
|
||||
|
||||
// _open_table.set_border_width (12);
|
||||
|
||||
_tabs.set_show_tabs(false);
|
||||
_tabs.set_show_border(false);
|
||||
|
||||
Reference in New Issue
Block a user