View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002790 | ardour | features | public | 2009-07-23 17:37 | 2020-04-19 20:14 |
| Reporter | elthariel | Assigned To | paul | ||
| Priority | normal | Severity | trivial | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Summary | 0002790: Allow double click in the First page of the startup assistant | ||||
| Description | nothing more to add. this is not a big deal but it helps save a 1/2 second. | ||||
| Tags | polish, ui | ||||
|
2009-07-23 17:37
|
double_clik_in_setup_initial_page.patch (1,427 bytes)
Index: gtk2_ardour/startup.cc
===================================================================
--- gtk2_ardour/startup.cc (revision 5417)
+++ gtk2_ardour/startup.cc (working copy)
@@ -359,6 +359,8 @@
centering_vbox->pack_start (ic_new_session_button, false, true);
centering_vbox->pack_start (ic_existing_session_button, false, true);
+ ic_new_session_button.signal_button_press_event().connect(mem_fun(*this, &ArdourStartup::initial_choice_activated), false);
+ ic_existing_session_button.signal_button_press_event().connect(mem_fun(*this, &ArdourStartup::initial_choice_activated), false);
centering_hbox->pack_start (*centering_vbox, true, true);
@@ -377,6 +379,18 @@
set_page_complete (ic_vbox, true);
}
+bool
+ArdourStartup::initial_choice_activated(GdkEventButton *event)
+{
+ if (event && event->type == GDK_2BUTTON_PRESS && session_page_index != -1)
+ {
+ set_current_page(session_page_index);
+ return true;
+ }
+ else
+ return false;
+}
+
void
ArdourStartup::setup_session_page ()
{
Index: gtk2_ardour/startup.h
===================================================================
--- gtk2_ardour/startup.h (revision 5417)
+++ gtk2_ardour/startup.h (working copy)
@@ -89,6 +89,7 @@
Gtk::VBox ic_vbox;
Gtk::RadioButton ic_new_session_button;
Gtk::RadioButton ic_existing_session_button;
+ bool initial_choice_activated(GdkEventButton *);
/* monitoring choices */
|
|
|
Assigned to Paul to take a look at. |
|
|
committed. great little change, thanks! |
|
|
Issue has been closed automatically, by Trigger Close Plugin. Feel free to re-open with additional information if you think the issue is not resolved. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2009-07-23 17:37 | elthariel | New Issue | |
| 2009-07-23 17:37 | elthariel | File Added: double_clik_in_setup_initial_page.patch | |
| 2009-07-23 17:48 | seablade | Status | new => assigned |
| 2009-07-23 17:48 | seablade | Assigned To | => paul |
| 2009-07-23 17:48 | seablade | Note Added: 0006459 | |
| 2009-07-23 23:42 | elthariel | Tag Attached: polish | |
| 2009-07-23 23:43 | elthariel | Tag Attached: ui | |
| 2009-10-08 14:29 | paul | cost | => 0.00 |
| 2009-10-08 14:29 | paul | Note Added: 0006692 | |
| 2009-10-08 14:29 | paul | Status | assigned => resolved |
| 2009-10-08 14:29 | paul | Resolution | open => fixed |
| 2020-04-19 20:14 | system | Note Added: 0021958 | |
| 2020-04-19 20:14 | system | Status | resolved => closed |