[totem] main: Call gtk_init() on startup to ensure locale and gettext are initialised



commit 99966f034601f1b652fec0e7292f5e8940168152
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Dec 25 12:01:39 2012 +0000

    main: Call gtk_init() on startup to ensure locale and gettext are initialised
    
    The translated application name passed to g_set_application_name() wasnât
    actually being translated because setlocale() hadnât been called and Totem
    was still in the C locale.
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=690682

 src/totem.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/totem.c b/src/totem.c
index 4f02d25..228b325 100644
--- a/src/totem.c
+++ b/src/totem.c
@@ -249,6 +249,7 @@ main (int argc, char **argv)
 #endif
 
 	g_type_init ();
+	gtk_init (&argc, &argv);
 
 	g_set_prgname ("totem");
 	g_set_application_name (_("Videos"));



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