summaryrefslogtreecommitdiff
path: root/src/slideshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/slideshow.c')
-rw-r--r--src/slideshow.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 314374c..0d509e4 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -280,20 +280,13 @@ void slideshow_change_image(winwidget winwid, int change)
void slideshow_pause_toggle(winwidget w)
{
- char *title, *new_title;
- int len;
-
if (!opt.paused) {
opt.paused = 1;
-
- len = strlen(w->name) + sizeof(" [Paused]") + 1;
- new_title = emalloc(len);
- snprintf(new_title, len, "%s [Paused]", w->name);
- title = estrdup(w->name);
- winwidget_rename(w, new_title);
} else {
opt.paused = 0;
}
+
+ winwidget_rename(w, NULL);
}
char *slideshow_create_name(feh_file * file)