[gnome-desktop] libgnome-desktop: initialize gettext before constructing a wall clock



commit a4dd7815aba059c8798094a277acccfdbc2f7179
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun May 12 18:50:05 2013 +0200

    libgnome-desktop: initialize gettext before constructing a wall clock
    
    GnomeWallClock uses gettext, so we must initialize it to point to
    the right path.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=699325

 libgnome-desktop/gnome-wall-clock.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgnome-desktop/gnome-wall-clock.c b/libgnome-desktop/gnome-wall-clock.c
index 2116791..a2f5e2c 100644
--- a/libgnome-desktop/gnome-wall-clock.c
+++ b/libgnome-desktop/gnome-wall-clock.c
@@ -178,6 +178,9 @@ gnome_wall_clock_class_init (GnomeWallClockClass *klass)
 {
        GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
 
+       bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+       bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
        gobject_class->get_property = gnome_wall_clock_get_property;
        gobject_class->set_property = gnome_wall_clock_set_property;
        gobject_class->dispose = gnome_wall_clock_dispose;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]