]> hydra-www.ietfng.org Git - gtetrinet/commitdiff
- work-arounds to get the clist headers translated
authorBastien Nocera <hadess@src.gnome.org>
Fri, 28 Jun 2002 21:49:02 +0000 (21:49 +0000)
committerBastien Nocera <hadess@src.gnome.org>
Fri, 28 Jun 2002 21:49:02 +0000 (21:49 +0000)
ChangeLog
src/partyline.c
src/winlist.c

index a57d2b0cc2473eb2aa5f618c1dec5beb2319c703..79ac7c0ff9f79621a459f064ca86ccfedb8bacb3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-06-28  Bastien Nocera  <hadess@hadess.net>
+
+       * src/partyline.c: (partyline_page_new):
+       * src/winlist.c: (winlist_page_new):
+       work-arounds to get the clist headers translated
+
 2002-06-28  Jordi Mallach  <jordi@sindominio.net>
 
        * src/gtetrinet.c, partyline.c, partyline.h, tetrinet.c:
index 0c924df8d6937cb91e932fec19f5eb9aed79c7a2..2ec82a71d4b06c18b7434c906caa12ae5ec591d5 100644 (file)
 #include "misc.h"
 #include "commands.h"
 
-/* for the player list */
-static char *listtitles[] = {
-    "",
-    N_("Name"),
-    N_("Team")
-};
-
 /* widgets that we have to do stuff with */
 static GtkWidget *playerlist, *textbox, *entrybox,
     *namelabel, *teamlabel, *infolabel, *textboxscroll;
@@ -53,6 +46,12 @@ static gint entrykey (GtkWidget *widget, GdkEventKey *key);
 GtkWidget *partyline_page_new (void)
 {
     GtkWidget *widget, *box; /* generic temp variables */
+    char *listtitles[3];
+
+    /* Initialise the array for the player list */
+    listtitles[0] = "";
+    listtitles[1] = _("Name");
+    listtitles[2] = _("Team");
 
     /* left box */
     leftbox = gtk_vbox_new (FALSE, 4);
index 25bf22de876561d8e33e0e4e236cea6bdcf29a7a..2bd4acb1bac1f99567034d150366173b597f24ea 100644 (file)
@@ -16,6 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
+
 #include <gtk/gtk.h>
 #include <gnome.h>
 #include <string.h>
 #include "winlist.h"
 #include "misc.h"
 
-char *winlisttitles[3] = {
-    N_("T"),
-    N_("Name"),
-    N_("Score")
-};
-
-GtkWidget *winlist;
+static GtkWidget *winlist;
 
 GtkWidget *winlist_page_new (void)
 {
+    char *winlisttitles[3];
     GtkWidget *align;
 
+    winlisttitles [0] = _("T");
+    winlisttitles [1] = _("Name");
+    winlisttitles [2] = _("Score");
+
     winlist = gtk_clist_new_with_titles (3, winlisttitles);
 
     gtk_clist_set_column_width (GTK_CLIST(winlist), 0, 8);