+2002-10-18 Jordi Mallach <jordi@sindominio.net>
+
+ * src/client.c: tidy spacing between copyright header and code.
+ * src/keys.c: likewise.
+ * src/misc.c: likewise.
+ * src/sound.c: likewise.
+ * src/tetris.c: likewise.
+
+ * src/commands.c: include "../config.h".
+ * src/commands.h: remove include.
+ * src/config.c: include "../config.h".
+ * src/dialogs.c: include "../config.h". CList header i18n fixes.
+ * src/fields.c: include "../config.h".
+ * src/gtetrinet.c: likewise.
+ * src/partyline.c: likewise.
+ * src/tetrinet.c: likewise.
+ * src/winlist.c: likewise.
+
2002-10-17 Jordi Mallach <jordi@sindominio.net>
* NEWS, configure.in: released gtetrinet 0.4.2.
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
#include <stdio.h>
#include <string.h>
#include <unistd.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <string.h>
-#include "../config.h"
-
extern GnomeUIInfo menubar[];
extern GnomeUIInfo toolbar[];
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <stdlib.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <sys/types.h>
int themechanged, midichanged;
-char *keytitles[] = {
- N_("Action"),
- N_("Key")
-};
-
-char *actions[K_NUM] = {
- N_("Move right"),
- N_("Move left"),
- N_("Move down"),
- N_("Rotate right"),
- N_("Rotate left"),
- N_("Drop piece"),
- N_("Send Message")
-};
-
+char *actions[K_NUM];
int actionid[K_NUM] = {
K_RIGHT,
K_LEFT,
char *array[2];
int i;
+ actions[0] = _("Move right");
+ actions[1] = _("Move left");
+ actions[2] = _("Move down");
+ actions[3] = _("Rotate right");
+ actions[4] = _("Rotate left");
+ actions[5] = _("Drop piece");
+ actions[6] = _("Send message");
+
for (i = 0; i < K_NUM; i ++) {
array[0] = actions[i];
array[1] = keystr (newkeys[actionid[i]]);
if (pk_row == -1) return;
- sprintf (buf, _("Press new key for %s"), actions[pk_row]);
+ sprintf (buf, _("Press new key for \"%s\""), actions[pk_row]);
k = key_dialog (buf);
if (k) {
newkeys[actionid[pk_row]] = k;
void prefdialog_new (void)
{
GtkWidget *label, *table, *frame, *button, *button1, *widget, *table1, *divider;
+ char *keytitles[2];
int i;
+ keytitles[0] = _("Action");
+ keytitles[1] = _("Key");
+
prefdialog = gnome_property_box_new();
gtk_window_set_title(GTK_WINDOW(prefdialog), _("GTetrinet Preferences"));
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <gdk_imlib.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <gdk_imlib.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
#include <string.h>
#include "keys.h"
* 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 <unistd.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <string.h>
* 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 <sys/types.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <stdlib.h>
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
#include <string.h>
#include "client.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "../config.h"
+
#include <gtk/gtk.h>
#include <gnome.h>
#include <string.h>