- Gtk::Button* b = manage (new Gtk::Button (_("Select All")));
- b->signal_clicked().connect (
- sigc::bind (
- sigc::mem_fun (*this, &ExportTimespanSelector::set_selection_state_of_all_timespans), true
- )
- );
- option_hbox.pack_start (*b, false, false, 6);
-
- b = manage (new Gtk::Button (_("Deselect All")));
- b->signal_clicked().connect (
- sigc::bind (
- sigc::mem_fun (*this, &ExportTimespanSelector::set_selection_state_of_all_timespans), false
- )
- );
- option_hbox.pack_start (*b, false, false, 6);
+ if (multi) {
+ Gtk::Button* b = Gtk::manage (new Gtk::Button (_("Select All")));
+ b->signal_clicked().connect (
+ sigc::bind (
+ sigc::mem_fun (*this, &ExportTimespanSelector::set_selection_state_of_all_timespans), true
+ )
+ );
+ option_hbox.pack_start (*b, false, false, 6);
+
+ b = Gtk::manage (new Gtk::Button (_("Deselect All")));
+ b->signal_clicked().connect (
+ sigc::bind (
+ sigc::mem_fun (*this, &ExportTimespanSelector::set_selection_state_of_all_timespans), false
+ )
+ );
+ option_hbox.pack_start (*b, false, false, 6);
+ }
+ option_hbox.pack_start (realtime_checkbutton, false, false, 6);
+ realtime_checkbutton.set_active (session->config.get_realtime_export ());
+
+ realtime_checkbutton.signal_toggled ().connect (
+ sigc::mem_fun (*this, &ExportTimespanSelector::toggle_realtime)
+ );