summaryrefslogtreecommitdiff
path: root/src/multiwindow.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-02-13 19:55:53 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2010-02-13 19:55:53 +0100
commit8ded860d0b73bf90203bf5e0297ba82837340fd1 (patch)
tree6ba3f3ac576e3df65186849d112f5b160268c6d7 /src/multiwindow.c
parent2fb795cf66d74df690263c438a7d2212eb74b3f6 (diff)
Change source code indentation (indent -kr -i8 -hnl, mainly)
Diffstat (limited to 'src/multiwindow.c')
-rw-r--r--src/multiwindow.c71
1 files changed, 31 insertions, 40 deletions
diff --git a/src/multiwindow.c b/src/multiwindow.c
index 60d5660..cd4e82c 100644
--- a/src/multiwindow.c
+++ b/src/multiwindow.c
@@ -29,50 +29,41 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "filelist.h"
#include "options.h"
-void
-init_multiwindow_mode(void)
+void init_multiwindow_mode(void)
{
- winwidget w = NULL;
- gib_list *l;
- feh_file *file = NULL;
+ winwidget w = NULL;
+ gib_list *l;
+ feh_file *file = NULL;
- D_ENTER(2);
+ D_ENTER(2);
- mode = "multiwindow";
+ mode = "multiwindow";
- for (l = filelist; l; l = l->next)
- {
- char *s = NULL;
- int len = 0;
- file = FEH_FILE(l->data);
- current_file = l;
+ for (l = filelist; l; l = l->next) {
+ char *s = NULL;
+ int len = 0;
+ file = FEH_FILE(l->data);
+ current_file = l;
- if (!opt.title)
- {
- len = strlen(PACKAGE " - ") + strlen(file->filename) + 1;
- s = emalloc(len);
- snprintf(s, len, PACKAGE " - %s", file->filename);
- }
- else
- {
- s = estrdup(feh_printf(opt.title, file));
- }
+ if (!opt.title) {
+ len = strlen(PACKAGE " - ") + strlen(file->filename) + 1;
+ s = emalloc(len);
+ snprintf(s, len, PACKAGE " - %s", file->filename);
+ } else {
+ s = estrdup(feh_printf(opt.title, file));
+ }
- if ((w = winwidget_create_from_file(l, s, WIN_TYPE_SINGLE)) != NULL)
- {
- winwidget_show(w);
- if (opt.reload > 0)
- feh_add_unique_timer(cb_reload_timer, w, opt.reload);
- if (!feh_main_iteration(0))
- exit(0);
- }
- else
- {
- D(3,
- ("EEEK. Couldn't load image in multiwindow mode. "
- "I 'm not sure if this is a problem\n"));
- }
- free(s);
- }
- D_RETURN_(2);
+ if ((w = winwidget_create_from_file(l, s, WIN_TYPE_SINGLE)) != NULL) {
+ winwidget_show(w);
+ if (opt.reload > 0)
+ feh_add_unique_timer(cb_reload_timer, w, opt.reload);
+ if (!feh_main_iteration(0))
+ exit(0);
+ } else {
+ D(3, ("EEEK. Couldn't load image in multiwindow mode. "
+ "I 'm not sure if this is a problem\n"));
+ }
+ free(s);
+ }
+ D_RETURN_(2);
}