gnome-scan r797 - in branches/GNOME_SCAN_0_6: . modules
- From: phsadleder svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-scan r797 - in branches/GNOME_SCAN_0_6: . modules
- Date: Mon, 19 Jan 2009 12:40:27 +0000 (UTC)
Author: phsadleder
Date: Mon Jan 19 12:40:27 2009
New Revision: 797
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=797&view=rev
Log:
Convert width and height to GTK_UNIT_MM.
Modified:
branches/GNOME_SCAN_0_6/ChangeLog
branches/GNOME_SCAN_0_6/modules/gsane-meta-param.c
Modified: branches/GNOME_SCAN_0_6/modules/gsane-meta-param.c
==============================================================================
--- branches/GNOME_SCAN_0_6/modules/gsane-meta-param.c (original)
+++ branches/GNOME_SCAN_0_6/modules/gsane-meta-param.c Mon Jan 19 12:40:27 2009
@@ -338,9 +338,9 @@
enumeration = g_slist_append (enumeration,
gtk_paper_size_new_custom ("maximal",
_("Maximal"),
- (gdouble) rect.width,
- (gdouble) rect.height,
- gs_param_spec_get_unit (mpps->tl_x)));
+ gs_convert_to_mm (rect.width, gs_param_spec_get_unit (mpps->tl_x), mpps->resolution),
+ gs_convert_to_mm (rect.height, gs_param_spec_get_unit (mpps->tl_x), mpps->resolution),
+ GTK_UNIT_MM));
for (i = 0 ; names[i] ; i++) {
enumeration = g_slist_append (enumeration,
gtk_paper_size_new (names[i]));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]