From 72904e8a0b9e57909c31c692de5578c4413554f0 Mon Sep 17 00:00:00 2001 From: Jordi Albornoz Date: Mon, 6 Jan 2003 17:35:12 +0000 Subject: [PATCH] Fix UTF-8 handling in team dialog. Update docs. --- ChangeLog | 9 +++++++++ NEWS | 5 +++++ README | 2 +- TODO | 1 + src/dialogs.c | 4 +++- 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f505a80..5889cb0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2003-01-06 Jordi Mallach + + * 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 * src/dialogs.c (prefdialog_new): fixed the code that checks diff --git a/NEWS b/NEWS index cb2d836..e3b3953 100644 --- 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 8fd206f..6c70934 100644 --- 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 23ba23e..b849df3 100644 --- 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 diff --git a/src/dialogs.c b/src/dialogs.c index 086be27..b5acfe8 100644 --- a/src/dialogs.c +++ b/src/dialogs.c @@ -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); -- 2.50.1