Dani Carbonell [Fri, 10 Jan 2003 18:30:08 +0000 (18:30 +0000)]
hide the window only if it really existed (fixes the -c bug).
2003-01-10 Dani Carbonell <bocata@panete.net>
* src/dialogs.c (connectdialog_connected): hide the window only if
it really existed (fixes the -c bug).
* src/fields.c (fields_gmsginputadd): this function was useless,
removed.
(fields_gmsginputback): likewise
* src/fields.h: removed those two function's declarations.
* src/gtetrinet.c (switch_focus): new function, will handle the
notebook's tab switching, sending focus where it should be.
(gtetrinet_key): function cleaned.
* src/gtetrinet.h: added the function declaration.
* src/partyline.c (partyline_entryfocus): now it clears all the text
in the partyline's gtk_entry.
* src/tetrinet.c (tetrinet_endgame): now it properly closes the field's
gtk_entry, if it's open when the game ends.
(tetrinet_inmessage): now it properly takes into account that a
player has left the game, so no one can attack him after he's gone.
* src/winlist.c (winlist_focus): new function that will focus the
winlist when the user switches to that tab.
Jordi Albornoz [Tue, 7 Jan 2003 16:38:00 +0000 (16:38 +0000)]
Dani Carbonell: rewrite team dialog. Add spacing between buttons in preferences and connect dialogs. Check if the user has introduced nick, server and spectator password before trying to connect. Convert all keystrokes to upper case, so you can use shift as a game key.
Jordi Mallach: supress compile warnings, update copyright notices.
Jordi Albornoz [Sun, 5 Jan 2003 20:58:28 +0000 (20:58 +0000)]
From Dani Carbonell: dialog behaviour handling fixes and focus gmsginput just when it needs to. Port gtk_window_set_policy to gtk_window_set_resizable.
Jordi Albornoz [Sun, 5 Jan 2003 20:15:14 +0000 (20:15 +0000)]
Adapt patch from Jan Bretschneider with some UI improvements that mimic windows tetrinet's behaviour. Switch to partyline on successful connect and on game end, and to fields on game start.
Jordi Albornoz [Sun, 5 Jan 2003 18:25:56 +0000 (18:25 +0000)]
Patch from Dani Carbonell. Fix memory leak in winlist.c. More UTF-8 conversion fixes. Add a horizontal scrollbar to the player list. Port gtk_object_get_data to g_object_get_data.
Jordi Albornoz [Sun, 5 Jan 2003 01:25:51 +0000 (01:25 +0000)]
New patch from Dani Carbonell. Fix creation of multiple about dialogs. Convert theme info and winlist items to UTF-8. Fix bug when connecting as spectator. Port some gtk_signal_connect's.
Jordi Albornoz [Sun, 5 Jan 2003 00:02:12 +0000 (00:02 +0000)]
Big patch from Dani Carbonell. Fixes UTF-8 issues, ports GTK_CLISTs to GtkTreeViews, adds icons to the toolbar, assigns a window icon to gtetrinet, fixes partyline's textview.
Jordi Albornoz [Tue, 3 Dec 2002 17:10:35 +0000 (17:10 +0000)]
Patch from James Antill:
* src/misc.c (adjust_bottom_text_view): Change function API to work on
TextViews nativley ... use idle handler to stop syncronous updates.
(nocolor): Change static buffer with no bounds checking to dynamicly
sized buffer.
* src/gtetrinet.c (keypress): Search for notebook keys before game
keys (as 1, 2 and 3 are attack commands).
Jordi Albornoz [Mon, 28 Oct 2002 02:04:05 +0000 (02:04 +0000)]
add translation credits, gtetrinet's logo and a hyperlink to gtetrinet's homepage in the About dialog. set bind_textdomain_codeset to "UTF-8". Bump version to 0.5.0pre1.
Jordi Albornoz [Sun, 27 Oct 2002 22:31:33 +0000 (22:31 +0000)]
SECURITY FIXES: replace all uses of strcpy(), strcat(), strncpy() and strncat() with safe versions. Fix buffer overflows in theme code, partyline and other places; cleanup other places to minimize risks. Patch from James Antill.
Jordi Albornoz [Sun, 20 Oct 2002 10:03:01 +0000 (10:03 +0000)]
patches from James Antill: change the attack/defense box's minimum size, to avoid message wraps as much as possible. Change the toggle page keybinds from F1, F2 and F3 to Alt+1,2,3 as the previous ones were normally captured by window managers. Add different colours for events in attacks/defenses. Fix the random order of added special blocks when the player just has one.
Jordi Albornoz [Fri, 28 Jun 2002 23:09:30 +0000 (23:09 +0000)]
added the manpage which I've been distributing with the Debian package for over a year.
install gtetrinet in /usr/games by default.
added NEWS items for all gtetrinet releases, based on info from the ChangeLog.
Fixed a few things in README.
Jordi Albornoz [Fri, 28 Jun 2002 20:39:57 +0000 (20:39 +0000)]
Added an autogen.sh script for CVS setup.
Added xpms in src/images to EXTRA_DIST.
Translated gtetrinet to Catalan.
Removed bogus file from m4/ EXTRA_DIST.
Jordi Albornoz [Mon, 14 Jan 2002 17:10:44 +0000 (17:10 +0000)]
Fixed cosmetic issue in about dialog.
Fixed major problem in ARM, PowerPC and S/390 architectures, char variables aren't signed by default in those systems.