]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
Fix UTF-8 handling in team dialog. Update docs.
authorJordi Albornoz <jordi@src.gnome.org>
Mon, 6 Jan 2003 17:35:12 +0000 (17:35 +0000)
committerJordi Albornoz <jordi@src.gnome.org>
Mon, 6 Jan 2003 17:35:12 +0000 (17:35 +0000)
ChangeLog
NEWS
README
TODO
src/dialogs.c

index f505a80cd1ae2dcf183d18410b6867cd881ee8e8..5889cb06b9c84c76932f6ab4d098daa830989f61 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2003-01-06  Jordi Mallach  <jordi@sindominio.net>
+
+       * NEWS: updated for 0.5.1.
+       * README: update requirements.
+       * TODO: updated.
+
+       * src/dialogs.c (teamdialog_new): patch from Dani which converts
+       input to UTF-8,
+
 2003-01-06  Dani Carbonell  <bocata@panete.net>
 
        * src/dialogs.c (prefdialog_new): fixed the code that checks
diff --git a/NEWS b/NEWS
index cb2d83672c98c3f755c84ba58d2f2a9dc831318d..e3b3953b1f919e72aae0e68b44054c14b6feb809 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+GTetrinet 0.5.1 - Unreleased
+- Fix bad bugs in dialog handling which made GTetrinet crash on connect
+  or other situations.
+- Other minor fixes.
+
 GTetrinet 0.5.0 - 2003-01-05
 - Finally, GNOME2 port!
 - The configuration is now read from the ~/.gnome2/gtetrinet file. If you
diff --git a/README b/README
index 8fd206f0c783da7cc7aeaa4a78f68bcda1d33e70..6c70934823a6396fab057994898111eddd0e397a 100644 (file)
--- a/README
+++ b/README
@@ -19,7 +19,7 @@ Tetrinet was originally conceived by St0rmCat.
 Requirements
 ------------
 
-GTetrinet requires GNOME 1.0 or newer.
+GTetrinet requires GNOME 2.0 or newer.
 
 For sound support, ESD is required.  However, GTetrinet can be compiled
 without sound support.
diff --git a/TODO b/TODO
index 23ba23e9c869e42276bd5f8b0513ecb6d5c0450f..b849df3d5f1496c47bc2cca8fe6272374809fcbf 100644 (file)
--- a/TODO
+++ b/TODO
@@ -9,5 +9,6 @@ GTetrinet's TODO list
   + problem when typing composed letters (รก) in fields messages
   + port deprecated widgets (-DGTK_DISABLE_DEPRECATED)
   + detaching and reattaching the Menu Bar causes two Bonobo-CRITICAL
+  + when using /usr/local as prefix, you get a GDK-CRITICAL on prefs.
 - Make gtetrinet resizeable (at least the fields messages bit)
 - Write a User Manual
index 086be27af2e26c560c6a37a0d8105d7e30dc731b..b5acfe8e4551f0f346b690d15c5e671a8614e6ef 100644 (file)
@@ -137,6 +137,7 @@ void teamdialog_button (GnomeDialog *dialog, gint button, gpointer data)
 void teamdialog_new (void)
 {
     GtkWidget *table, *widget, *entry;
+    gchar *team_utf8 = g_locale_to_utf8 (team, -1, NULL, NULL, NULL);
   
     if (team_dialog != NULL)
     {
@@ -157,7 +158,8 @@ void teamdialog_new (void)
     gtk_table_attach_defaults (GTK_TABLE(table), widget, 0, 1, 0, 1);
     entry = gnome_entry_new ("Team");
     gtk_entry_set_text (GTK_ENTRY(gnome_entry_gtk_entry(GNOME_ENTRY(entry))),
-                        team);
+                        team_utf8);
+    g_free (team_utf8);
     gtk_widget_show (entry);
     gtk_table_attach_defaults (GTK_TABLE(table), entry, 1, 2, 0, 1);
     gtk_widget_show (table);