changing slideshow speed
Tim Orford <[email protected]> Wed, 27 Oct 2004 18:11:49 +0200
| Newsgroups | gmane.comp.gnome.apps.gqview.devel |
|---|---|
| Message-ID | <[email protected]> |
hi
this patch enables the user to change the speed of the slideshow
directly using the <> keys.
personally i find it very useful.
only slight drawback is that the change doesnt take
effect until after the next slide is shown.
---------------------------------------------------
--- layout_image.c.orig 2004-06-24 21:21:49.000000000 +0200
+++ layout_image.c 2004-06-24 21:25:20.000000000 +0200
@@ -191,4 +191,12 @@
stop_signal = TRUE;
break;
+ case ',':
+ if (slideshow_delay > 1) slideshow_delay -= 1;
+ break;
+ case '.':
+ if (slideshow_delay < 100) slideshow_delay += 1;
+ break;
}
---------------------------------------------------
--- slideshow.c.orig 2004-06-24 22:01:12.000000000 +0200
+++ slideshow.c 2004-06-24 21:57:07.000000000 +0200
@@ -214,4 +214,6 @@
return FALSE;
}
+
+ slideshow_timer_reset(ss, TRUE);
---------------------------------------------------
unfortunately i think these diffs have to be applied manually
for 1.5.3, which i asume is not a problem given their trivial
nature.
gqview is a nice app - thanks, and keep up the good work!
regards
--
Tim Orford
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click