Commit 88d1ad68 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

quiet/verbose adjustments

parent 69ecc5c1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -7,6 +7,8 @@ git HEAD
    * feh --list now uses %S/%P to print image size and amount of pixels
    * Fix zoom_default key (caused blurry images in some cases due to a bad
      workaround)
    * make --quiet and --verbose behave more like their documented way, never
      ignore out of memory errors

Thu, 02 Feb 2012 21:04:06 +0100  Daniel Friesel <derf@finalrewind.org>

+8 −13
Original line number Diff line number Diff line
@@ -217,11 +217,9 @@ void add_file_to_filelist_recursively(char *origpath, unsigned char level)
		if (n < 0) {
			switch (errno) {
			case ENOMEM:
		    if (!opt.quiet)
				weprintf("Insufficient memory to scan directory %s:", path);
				break;
			default:
		    if (!opt.quiet)
				weprintf("Failed to scan directory %s:", path);
			}
		}
@@ -275,9 +273,6 @@ gib_list *feh_file_info_preload(gib_list * list)
	feh_file *file = NULL;
	gib_list *remove_list = NULL;

	if (opt.verbose)
		fputs(PACKAGE " - preloading...\n", stdout);

	for (l = list; l; l = l->next) {
		file = FEH_FILE(l->data);
		D(("file %p, file->next %p, file->name %s\n", l, l->next, file->name));
@@ -533,7 +528,7 @@ void feh_save_filelist()

	tmpname = feh_unique_filename("", "filelist");

	if (!opt.quiet)
	if (opt.verbose)
		printf("saving filelist to filename '%s'\n", tmpname);

	feh_write_filelist(filelist, tmpname);
+1 −1
Original line number Diff line number Diff line
@@ -571,7 +571,7 @@ void slideshow_save_image(winwidget win)
		tmpname = feh_unique_filename("", "noname.png");
	}

	if (!opt.quiet)
	if (opt.verbose)
		printf("saving image to filename '%s'\n", tmpname);

	/* XXX gib_imlib_save_image_with_error_return breaks with *.XXX and