[shotwell] Remove LConv in favor of langinfo
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Remove LConv in favor of langinfo
- Date: Sun, 21 Aug 2016 10:12:26 +0000 (UTC)
commit 6ee5fcb96b1c799eebc09a65b9b30b37612bfdc1
Author: Jens Georg <mail jensge org>
Date: Fri Aug 19 08:54:37 2016 +0200
Remove LConv in favor of langinfo
Signed-off-by: Jens Georg <mail jensge org>
Makefile.am | 1 -
shotwell.am | 2 +-
src/Printing.vala | 3 ++-
vapi/LConv.vapi | 45 ---------------------------------------------
4 files changed, 3 insertions(+), 48 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index a4dda52..9087586 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -145,7 +145,6 @@ dist_noinst_DATA += \
plugins/shotwell-plugin-dev-1.0.h \
plugins/shotwell-plugin-common.h \
vapi/gphoto.h \
- vapi/LConv.vapi \
vapi/langinfo.vapi \
vapi/libexif.vapi \
vapi/libgphoto2.vapi \
diff --git a/shotwell.am b/shotwell.am
index 8bb6d21..4ba8269 100644
--- a/shotwell.am
+++ b/shotwell.am
@@ -14,7 +14,7 @@ shotwell_VALAFLAGS = $(COMMON_VALAFLAGS) \
--pkg gio-2.0 --pkg gtk+-3.0 --pkg gee-0.8 \
--pkg gio-unix-2.0 --pkg sqlite3 --pkg gmodule-2.0 \
--vapidir $(abs_top_srcdir)/vapi \
- --pkg libgphoto2 --pkg posix --pkg LConv --pkg libraw --pkg gexiv2 \
+ --pkg libgphoto2 --pkg posix --pkg libraw --pkg gexiv2 \
--pkg libexif --pkg gudev-1.0 --pkg gstreamer-1.0 \
--pkg gstreamer-pbutils-1.0 --pkg langinfo \
$(UNITY_VALAFLAGS) \
diff --git a/src/Printing.vala b/src/Printing.vala
index a7505ef..34a35a4 100644
--- a/src/Printing.vala
+++ b/src/Printing.vala
@@ -513,7 +513,8 @@ public class CustomPrintTab : Gtk.Fixed {
if (length == -1)
length = (int) text.length;
- string decimal_point = Intl.localeconv().decimal_point;
+ unowned string decimal_point = Nl.langinfo (Nl.Item.RADIXCHAR);
+
bool contains_decimal_point = sender.get_text().contains(decimal_point);
string new_text = "";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]