summaryrefslogtreecommitdiffstats
path: root/src/svg-view-slideshow.h
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-05-14 01:49:13 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-05-14 01:49:13 +0000
commit8b5ac2ae58d3857d98b4e6d12b95be8430a1ca50 (patch)
tree4f33be9a9c63a682f461661085bd7fa35c33eb67 /src/svg-view-slideshow.h
parentInkview: Some more refactoring (diff)
downloadinkscape-8b5ac2ae58d3857d98b4e6d12b95be8430a1ca50.tar.gz
inkscape-8b5ac2ae58d3857d98b4e6d12b95be8430a1ca50.zip
Inkview: Finally implement the -t or --timer option after we dragged it around for over 10 years without implementation
(bzr r15690.1.10)
Diffstat (limited to 'src/svg-view-slideshow.h')
-rw-r--r--src/svg-view-slideshow.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/svg-view-slideshow.h b/src/svg-view-slideshow.h
index a44ef5b55..3bab8f28f 100644
--- a/src/svg-view-slideshow.h
+++ b/src/svg-view-slideshow.h
@@ -36,8 +36,8 @@
*/
class SPSlideShow : public Gtk::ApplicationWindow {
public:
- SPSlideShow(std::vector<Glib::ustring> const &slides);
- void set_timer(int timer) {_timer = timer;}
+ SPSlideShow(std::vector<Glib::ustring> const &slides,
+ int timer);
private:
std::vector<Glib::ustring> _slides; ///< List of filenames for each slide
@@ -55,6 +55,7 @@ private:
void show_prev();
void goto_first();
void goto_last();
+ bool timer_callback();
bool key_press (GdkEventKey *event);
bool main_delete (GdkEventAny *event);