[gnome-desktop] gnome-rr: Setup i18n support ourselves



commit b352ab35f688a2bbcad17333002002baeedde6db
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jan 23 14:34:04 2013 +0100

    gnome-rr: Setup i18n support ourselves
    
    In the class_init() so it's only called once.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=692385

 libgnome-desktop/gnome-rr.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index cc4eb49..c1ab320 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -40,7 +40,6 @@
 #include "gnome-rr.h"
 #include "gnome-rr-config.h"
 
-#include "private.h"
 #include "edid.h"
 #include "gnome-rr-private.h"
 
@@ -836,6 +835,9 @@ gnome_rr_screen_class_init (GnomeRRScreenClass *klass)
     GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
     g_type_class_add_private (klass, sizeof (GnomeRRScreenPrivate));
 
+    bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
+    bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
     gobject_class->set_property = gnome_rr_screen_set_property;
     gobject_class->get_property = gnome_rr_screen_get_property;
     gobject_class->finalize = gnome_rr_screen_finalize;
@@ -970,8 +972,6 @@ gnome_rr_screen_new (GdkScreen *screen,
     if (rr_screen)
        g_object_ref (rr_screen);
     else {
-       _gnome_desktop_init_i18n ();
-
        rr_screen = g_initable_new (GNOME_TYPE_RR_SCREEN, NULL, error, "gdk-screen", screen, NULL);
        if (rr_screen) {
            g_object_set_data (G_OBJECT (screen), "GnomeRRScreen", rr_screen);


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