diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-01-27 23:43:24 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-01-27 23:43:24 +0100 |
commit | e04c0720e35885ecff7a540ae76620c3477471d8 (patch) | |
tree | 661e587526cde135a12af58c7435b8bdbc04b0a6 /src/index.c | |
parent | 32653a52c15431e714358198b44d8bd6699c2367 (diff) | |
parent | 5dc0d6770bc46676b969b60cc81f8ee689aaf829 (diff) |
Merge branch 'ulteq-simplify-title-generation'
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/index.c b/src/index.c index fbc25b8..c8c34c5 100644 --- a/src/index.c +++ b/src/index.c @@ -59,7 +59,6 @@ void init_index_mode(void) int lineno; unsigned char trans_bg = 0; int index_image_width, index_image_height; - char *s; gib_list *line, *lines; if (opt.montage) { @@ -164,15 +163,9 @@ void init_index_mode(void) gib_imlib_image_fill_rectangle(im_main, 0, 0, w, h + title_area_h, 0, 0, 0, 255); } - /* Create the window title at this point */ - - if (!opt.title) - s = estrdup(PACKAGE " [index mode]"); - else - s = estrdup(feh_printf(opt.title, NULL, NULL)); - if (opt.display) { - winwid = winwidget_create_from_image(im_main, s, WIN_TYPE_SINGLE); + winwid = winwidget_create_from_image(im_main, WIN_TYPE_SINGLE); + winwidget_rename(winwid, PACKAGE " [index mode]"); winwidget_show(winwid); } @@ -348,7 +341,6 @@ void init_index_mode(void) if (!opt.display) gib_imlib_free_image_and_decache(im_main); - free(s); return; } |