[PATCH] gdm2 dates



hi

	this other patch fixes a problem with gdm2 HEAD where it is not able to
show dates with special characters (accents)




? gdmgreeter
? parche
Index: greeter_item.c
===================================================================
RCS file: /cvs/gnome/gdm2/gui/greeter/greeter_item.c,v
retrieving revision 1.3
diff -u -r1.3 greeter_item.c
--- greeter_item.c	2002/01/29 05:24:26	1.3
+++ greeter_item.c	2002/02/06 14:40:47
@@ -56,17 +56,21 @@
 void
 greeter_item_update_text (GreeterItemInfo *info)
 {
-  char *text;
+  char *text, *utf8_text;
+
   if (info && info->item &&
       GNOME_IS_CANVAS_TEXT (info->item))
     {
       text = greeter_item_expand_text (info->orig_text);
 
+      utf8_text = g_locale_to_utf8 (text, -1, NULL, NULL, NULL);
+      g_free (text);
+
       g_object_set (G_OBJECT (info->item),
-		    "text", text,
+		    "text", utf8_text,
 		    NULL);
 
-      g_free (text);
+      g_free (utf8_text);
     }
 
 }


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