gnome-scan r787 - trunk/modules/gsane
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-scan r787 - trunk/modules/gsane
- Date: Thu, 15 Jan 2009 18:11:02 +0000 (UTC)
Author: bersace
Date: Thu Jan 15 18:11:02 2009
New Revision: 787
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=787&view=rev
Log:
Clean message about available format for a device.
Modified:
trunk/modules/gsane/gsane-option-area.c
Modified: trunk/modules/gsane/gsane-option-area.c
==============================================================================
--- trunk/modules/gsane/gsane-option-area.c (original)
+++ trunk/modules/gsane/gsane-option-area.c Thu Jan 15 18:11:02 2009
@@ -108,15 +108,11 @@
ps = gtk_paper_size_new(paper_name);
- g_debug("%s is %.2fx%.2f %s",
- gtk_paper_size_get_display_name(ps),
- gtk_paper_size_get_width(ps, unit),
- gtk_paper_size_get_height(ps, unit),
- gnome_scan_unit_to_string(unit));
-
if (gtk_paper_size_get_width(ps, unit) > width
|| gtk_paper_size_get_height(ps, unit) > height) {
- g_debug("%s is too wide", gtk_paper_size_get_display_name(ps));
+ g_message("%s can't scan %s document, too wide for hardware extent.",
+ gnome_scan_scanner_get_name(GSANE_OPTION_HANDLER(self)->scanner),
+ gtk_paper_size_get_display_name(ps));
gtk_paper_size_free(ps);
return values;
}
@@ -160,7 +156,9 @@
break;
}
- g_debug("area is %.2fx%.2f %s", width, height, gnome_scan_unit_to_string(unit));
+ g_debug("%s extent is %.2fx%.2f %s",
+ gnome_scan_scanner_get_name(handler->scanner),
+ width, height, gnome_scan_unit_to_string(unit));
/* define max paper size */
value = g_new0(GValue, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]