+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:
#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;
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);
* 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);