diff --git a/ChangeLog b/ChangeLog index 8e18e970..fb8d00d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +* Changed glade filename from gfceux.xml -> gfceux.glade +* Removed the need of running ./generate.ui after every glade change +* Got rid of some silly glade errors +* Changed the installation instructions to avoid breakage * Gfceux now runs properly from the source directory without being installed ================= version 2.1 ====================== ============ diff --git a/INSTALL b/INSTALL index e5bc51bb..0aaa8676 100644 --- a/INSTALL +++ b/INSTALL @@ -1,18 +1,18 @@ You can install gfceux with setup.py: -$ sudo python setup.py install --prefix=/usr/local +$ sudo python setup.py install -You can change the prefix to whatever you like. +NOTE: The --prefix option of setup.py may be temporarily broken. +We believe this is a python issue, so just install to the default +path of /usr or just run the script out of the source directory. Requirements: -Python (tested with 2.5); (Ubuntu package name: python) +Python (tested with 2.6); (Ubuntu package name: python2.6) NOTE: gfceux is not yet compatible with python 3.x -PyGTK and GTK; (Ubuntu package name: (python-gtk2 libgtk2.0-0) +PyGTK (Ubuntu package name: python-gtk2) Fceux 2.x NOTE: fceu 1.x is no longer supported in the gfceu 2.x series. If you still want/need a front-end for gfceu use gfceu 0.x -ALSO NOTE: you can no longer run gfceux from the source directory. - You need to run the install script and then run the app. diff --git a/data/generate_ui.sh b/data/generate_ui.sh deleted file mode 100755 index 908db51c..00000000 --- a/data/generate_ui.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -gtk-builder-convert gfceux.glade gfceux.xml - diff --git a/data/gfceux.glade b/data/gfceux.glade index 016e1847..53ec388e 100644 --- a/data/gfceux.glade +++ b/data/gfceux.glade @@ -1,93 +1,103 @@ - - - - - + + + + + + 2 + 1 + 5 + 0.5 + 1 + + + 2 + 1 + 10 + 0.5 + 1 + + + 4046 + 1 + 65536 + 1 + 10 + + + 4046 + 1 + 65536 + 1 + 10 + + Gamepad Configuration - + - + True - + True <b>NOTE:</b> The below GUI is brand new and joysticks are not completely support yet. To configure a joystick, use --inputcfg. True True - + + + 0 + - + True - + True 0 - GTK_SHADOW_NONE + none - + True 12 - + True 3 3 - - - - - - - - - - - - - - - - + + Up True True True - Up - 0 - - + 1 2 - + + Left True True True - Left - 0 - - + 1 2 - + + Down True True True - Down - 0 - - + 1 2 @@ -96,14 +106,12 @@ - + + Right True True True - Right - 0 - - + 2 3 @@ -111,289 +119,297 @@ 2 - + + + + + + + + + + + + + + + + - + - - + + True <b>D-Pad</b> True - - - label_item - + - + False False + 0 - + True 0 - GTK_SHADOW_NONE + none - + True 12 - + True - + + Select True True True - Select - 0 - - + False False + 0 - + + Start True True True - Start - 0 - - + False False 1 - + - + - - + + True <b>Essentials</b> True - - - label_item - + - + 1 - + True 0 - GTK_SHADOW_NONE + none - + True 12 - + True - + True - + + B True True True - B - 0 - - + + + 0 + - + + A True True True - A - 0 - - + 1 - + + + 0 + - + True - + + Turbo B True True True - Turbo B - 0 - - + + + 0 + - + + Turbo A True True True - Turbo A - 0 - - + 1 - + 1 - + - + - - + + True <b>Alpha and Beta</b> True - - - label_item - + - + 2 - + 1 - + - - + + True GFCE UltraX 442 gfceux.png - + True 1 - + True True 3 - + True 5 5 - + True 5 - + True 5 ROM Filename: - + False False + 0 - + True True - + 1 - + + _Browse... True True - _Browse... + False True - 0 - + False False 2 - + False False + 0 - + True 5 - + True 5 Movie Filename: - + False False + 0 - + True True - + 1 - + + _Browse... True True - _Browse... + False True - 0 - + False False 2 - + False False @@ -401,87 +417,88 @@ - + True 5 - + True 5 Lua Script: - + False False + 0 - + True True - + 1 - + + _Browse... True True - _Browse... + False True - 0 - + False False 2 - + False False 2 - + - - + + True Main - + - tab False - + True 5 5 - + True - + True gtk-dialog-info - + False False + 0 - + True Select an NES gamepad to configure. True - + False False @@ -489,41 +506,42 @@ 1 - + False False + 0 - + True 2 2 5 5 - - True - True + Gamepad _1 + True + True + False True - 0 - + - - True - True + Gamepad _2 + True + True + False True - 0 - + 1 2 @@ -531,14 +549,14 @@ - - True - True + Gamepad _4 + True + True + False True - 0 - + 1 2 @@ -548,21 +566,21 @@ - + + Gamepad _3 True True - Gamepad _3 + False True - 0 - + 1 2 - + False False @@ -570,66 +588,66 @@ - + + gtk-help True True - gtk-help + False True - 0 - + False False 5 - GTK_PACK_END + end 2 - + 1 - - + + True Input - + - tab 1 False - + True 5 5 - + + Enable _OpenGL Rendering True True - Enable _OpenGL Rendering + False True - 0 True - + False False + 0 - + + Enable _Full Screen True True - Enable _Full Screen + False True - 0 True - + False False @@ -637,12 +655,12 @@ - + True <small><i>(Press Alt+Enter to toggle fullscreen in-game.)</i></small> True True - + False False @@ -650,197 +668,198 @@ - + + _Autoscale Fullscreen True True - _Autoscale Fullscreen + False True - 0 True True - + False 3 - + True 0 - GTK_SHADOW_NONE + none - + True 12 - + True - + True - + True X scale: - + False 5 + 0 - + True True - 2 1 5 0.5 1 0 + adjustment1 0.099999999776482579 1 True - + False 1 - + False + 0 - + True - + True Y scale: - + False 5 + 0 - + True True - 2 1 10 0.5 1 0 + adjustment2 0.10000000000000001 1 True - GTK_UPDATE_IF_VALID - + if-valid + False 1 - + False 1 - + - + - - + + True <b>Manual Scaling</b> True - - - label_item - + - + 4 - + True - + True Bits per pixel: - + False 5 + 0 - + True True 2 32 - + False False 1 - + False False 5 - + 2 False - - + + True Video - + - tab 2 False - + True 5 - + + Enable _Sound True True - Enable _Sound + False True - 0 True True - + False 5 + 0 - + + Extra _Quaility True True - Extra _Quaility + False True - 0 True True - + False 5 @@ -848,33 +867,34 @@ - + True - + True Sample rate: - + False False 5 + 0 - + True True 6 11000 - + False False 1 - + False 5 @@ -882,194 +902,197 @@ - + True - + True Buffer size (ms): - + False False 5 + 0 - + True True 3 48 - + False False 1 - + False 3 - + 3 - - + + True Sound - + - tab 3 False - + True 5 5 - + True - + True gtk-dialog-info - + False False + 0 - + True If you would like to specify any command line options to FCE UltraX, specify them below. For a complete option reference, visit http://fceux.com . Invalid options may cause GFCE UltraX to behave incorrectly. True - + False False 1 - + False False 5 + 0 - + True - + True Extra Parameters: - + False False 5 + 0 - + True True - + 5 1 - + False 1 - + 4 - - + + True Advanced - + - tab 4 False - + True False 5 5 - + + _Host Game True True - _Host Game + False True - 0 True - + False False + 0 - + True 0 - GTK_SHADOW_NONE + none - + True 19 - + True 2 2 5 5 - + True 0 Port: - + GTK_FILL - + True 0 Password: - + 1 2 @@ -1078,12 +1101,12 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True True - 4046 1 65536 1 10 0 + adjustment3 1 - + 1 2 @@ -1091,10 +1114,10 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True True - + 1 2 @@ -1103,11 +1126,11 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + - + - + False False @@ -1115,16 +1138,16 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + + _Join Game True True - _Join Game + False True - 0 True host_radio - + False False @@ -1132,17 +1155,17 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True 0 - GTK_SHADOW_NONE + none - + True 0 19 - + True 5 3 @@ -1150,10 +1173,10 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 3 5 - + True True - + 1 2 @@ -1161,12 +1184,11 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True True False - * - + 1 2 @@ -1176,22 +1198,22 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True 0 Server Address: - + GTK_FILL - + True 0 Server Port: - + 1 2 @@ -1200,11 +1222,11 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True 0 Password: - + 2 3 @@ -1213,12 +1235,12 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + True True - 4046 1 65536 1 10 0 + adjustment4 1 - + 1 2 @@ -1227,11 +1249,11 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + - + - + False False @@ -1239,77 +1261,78 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + + _No Network True True - _No Network + False True - 0 True True host_radio - + False False 4 - + 5 - - + + False Network - + - tab 5 False - + 10 + 0 - + True True - + True 3 - + + gtk-execute True True True True True - gtk-execute + False True - 0 - + False + 0 - + + gtk-about True True - gtk-about + False True - 0 - + False False @@ -1317,33 +1340,36 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - + + gtk-quit True True - gtk-quit + False True - 0 - + False 2 - + + + 0 + - + False False 1 - + - - - GDK_WINDOW_TYPE_HINT_NORMAL + + + normal (C) Copyright 2008 A GTK2 front-end end for the fceux Nintendo Entertainment System emulator. This program is free software; you can redistribute it and/or @@ -1375,48 +1401,47 @@ Artwork for old versions (< 0.2.7): <vyruss000@gmail.com> gfceux_big.png - + True - + + http://fceux.com True True True True - http://fceux.com - GTK_RELIEF_NONE - 0 + none http://fceux.com - + 3 - + + http://dietschnitzel.com/gfceu/ True True True True - http://dietschnitzel.com/gfceu/ - GTK_RELIEF_NONE - 0 + none http://dietschnitzel.com/gfceu/ - + 4 - + True - + False - GTK_PACK_END + end + 0 - + - - + + diff --git a/data/gfceux.xml b/data/gfceux.xml index 7e65b051..53ec388e 100644 --- a/data/gfceux.xml +++ b/data/gfceux.xml @@ -1,43 +1,40 @@ - + + - 5 - 1 - 1 - 0.5 - 0 2 + 1 + 5 + 0.5 + 1 - 10 - 1 - 1 - 0.5 - 0 2 + 1 + 10 + 0.5 + 1 - 65536 - 1 - 10 - 1 - 0 4046 + 1 + 65536 + 1 + 10 - 65536 - 1 - 10 - 1 - 0 4046 + 1 + 65536 + 1 + 10 Gamepad Configuration - - - + + + True @@ -49,6 +46,9 @@ True True + + 0 + @@ -57,7 +57,7 @@ True 0 - GTK_SHADOW_NONE + none True @@ -67,28 +67,12 @@ True 3 3 - - - - - - - - - - - - - - - + Up True True True - Up - 1 @@ -97,11 +81,10 @@ + Left True True True - Left - 1 @@ -110,11 +93,10 @@ + Down True True True - Down - 1 @@ -125,11 +107,10 @@ + Right True True True - Right - 2 @@ -138,6 +119,21 @@ 2 + + + + + + + + + + + + + + + @@ -153,13 +149,14 @@ False False + 0 True 0 - GTK_SHADOW_NONE + none True @@ -169,24 +166,23 @@ True + Select True True True - Select - False False + 0 + Start True True True - Start - False @@ -214,7 +210,7 @@ True 0 - GTK_SHADOW_NONE + none True @@ -227,46 +223,51 @@ True + B True True True - B - + + 0 + + A True True True - A - 1 + + 0 + True + Turbo B True True True - Turbo B - + + 0 + + Turbo A True True True - Turbo A - 1 @@ -306,7 +307,7 @@ GFCE UltraX 442 gfceux.png - + True @@ -334,6 +335,7 @@ False False + 0 @@ -347,11 +349,12 @@ + _Browse... True True - _Browse... + False True - + False @@ -363,6 +366,7 @@ False False + 0 @@ -378,6 +382,7 @@ False False + 0 @@ -391,11 +396,12 @@ + _Browse... True True - _Browse... + False True - + False @@ -423,6 +429,7 @@ False False + 0 @@ -436,11 +443,12 @@ + _Browse... True True - _Browse... + False True - + False @@ -482,6 +490,7 @@ False False + 0 @@ -501,6 +510,7 @@ False False + 0 @@ -512,58 +522,62 @@ 5 + Gamepad _1 True True - Gamepad _1 + False True - + - + + Gamepad _2 True True - Gamepad _2 + False True - + 1 2 - + + Gamepad _4 True True - Gamepad _4 + False True - + 1 2 1 2 - + + Gamepad _3 True True - Gamepad _3 + False True - + 1 2 - + @@ -575,21 +589,25 @@ + gtk-help True True - gtk-help + False True - + False False 5 - GTK_PACK_END + end 2 + + 1 + @@ -608,22 +626,25 @@ 5 + Enable _OpenGL Rendering True True - Enable _OpenGL Rendering + False True True False False + 0 + Enable _Full Screen True True - Enable _Full Screen + False True True @@ -648,13 +669,14 @@ + _Autoscale Fullscreen True True - _Autoscale Fullscreen + False True True True - + False @@ -665,7 +687,7 @@ True 0 - GTK_SHADOW_NONE + none True @@ -684,6 +706,7 @@ False 5 + 0 @@ -703,6 +726,7 @@ False + 0 @@ -716,6 +740,7 @@ False 5 + 0 @@ -726,7 +751,7 @@ 0.10000000000000001 1 True - GTK_UPDATE_IF_VALID + if-valid False @@ -766,6 +791,7 @@ False 5 + 0 @@ -810,9 +836,10 @@ 5 + Enable _Sound True True - Enable _Sound + False True True True @@ -820,13 +847,15 @@ False 5 + 0 + Extra _Quaility True True - Extra _Quaility + False True True True @@ -849,6 +878,7 @@ False False 5 + 0 @@ -883,6 +913,7 @@ False False 5 + 0 @@ -905,6 +936,9 @@ + + 3 + @@ -932,6 +966,7 @@ False False + 0 @@ -954,6 +989,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. False False 5 + 0 @@ -968,6 +1004,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. False False 5 + 0 @@ -987,6 +1024,9 @@ Invalid options may cause GFCE UltraX to behave incorrectly. + + 4 + @@ -1006,23 +1046,25 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 5 + _Host Game True True - _Host Game + False True True - + False False + 0 True 0 - GTK_SHADOW_NONE + none True @@ -1042,7 +1084,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. GTK_FILL - + @@ -1055,7 +1097,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 1 2 GTK_FILL - + @@ -1068,7 +1110,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 1 2 - + @@ -1081,7 +1123,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 2 1 2 - + @@ -1097,13 +1139,14 @@ Invalid options may cause GFCE UltraX to behave incorrectly. + _Join Game True True - _Join Game + False True True host_radio - + False @@ -1115,7 +1158,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. True 0 - GTK_SHADOW_NONE + none True @@ -1137,7 +1180,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 1 2 - + @@ -1145,14 +1188,13 @@ Invalid options may cause GFCE UltraX to behave incorrectly. True True False - * 1 2 2 3 - + @@ -1163,7 +1205,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. GTK_FILL - + @@ -1176,7 +1218,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 1 2 GTK_FILL - + @@ -1189,7 +1231,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 2 3 GTK_FILL - + @@ -1204,7 +1246,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 2 1 2 - + @@ -1220,14 +1262,15 @@ Invalid options may cause GFCE UltraX to behave incorrectly. + _No Network True True - _No Network + False True True True host_radio - + False @@ -1236,6 +1279,9 @@ Invalid options may cause GFCE UltraX to behave incorrectly. + + 5 + @@ -1250,6 +1296,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 10 + 0 @@ -1262,26 +1309,29 @@ Invalid options may cause GFCE UltraX to behave incorrectly. 3 + gtk-execute True True True True True - gtk-execute + False True - + False + 0 + gtk-about True True - gtk-about + False True - + False @@ -1291,11 +1341,12 @@ Invalid options may cause GFCE UltraX to behave incorrectly. + gtk-quit True True - gtk-quit + False True - + False @@ -1303,6 +1354,9 @@ Invalid options may cause GFCE UltraX to behave incorrectly. + + 0 + @@ -1315,7 +1369,7 @@ Invalid options may cause GFCE UltraX to behave incorrectly. - GDK_WINDOW_TYPE_HINT_NORMAL + normal (C) Copyright 2008 A GTK2 front-end end for the fceux Nintendo Entertainment System emulator. This program is free software; you can redistribute it and/or @@ -1336,7 +1390,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.< Patch writers: Scott Brown - translator-credits + translator-credits Sketching: J. Sammer Digital Manipulation: @@ -1351,12 +1405,12 @@ Artwork for old versions (< 0.2.7): True + http://fceux.com True True True True - http://fceux.com - GTK_RELIEF_NONE + none http://fceux.com @@ -1365,12 +1419,12 @@ Artwork for old versions (< 0.2.7): + http://dietschnitzel.com/gfceu/ True True True True - http://dietschnitzel.com/gfceu/ - GTK_RELIEF_NONE + none http://dietschnitzel.com/gfceu/ @@ -1383,7 +1437,8 @@ Artwork for old versions (< 0.2.7): False - GTK_PACK_END + end + 0 diff --git a/gfceux b/gfceux index 8f73b985..9c8291c9 100755 --- a/gfceux +++ b/gfceux @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2.6 # # GTK2 GUI for FCE UltraX # diff --git a/setup.py b/setup.py index 2240d81c..005b70df 100755 --- a/setup.py +++ b/setup.py @@ -3,13 +3,13 @@ from distutils.core import setup setup(name="gfceux", - version="2.1", + version="2.2svn", scripts = ['gfceux'], packages = ['gfceux'], package_dir = {'gfceux': 'src'}, data_files=[ ('share/gfceux/', - ['data/gfceux.xml', 'data/gfceux_big.png', 'data/gfceux.png', + ['data/gfceux.glade', 'data/gfceux_big.png', 'data/gfceux.png', 'COPYING']), ('share/pixmaps/', ['data/gfceux.png']), diff --git a/src/main.py b/src/main.py index 0710e7e1..0a6e03b0 100755 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,7 @@ #!/usr/bin/python # gfceux - Graphical launcher for fceux. # Designed on Ubuntu, with platfrom independence in mind. -version = "2.1" +version = "2.2svn" title = "gfceux" # Copyright (C) 2008 Lukas Sabota ## @@ -280,11 +280,11 @@ class GfceuxApp: global widgets """ Search for the glade XML file and load it """ # Check first in the directory of this script. - if os.path.isfile('data/gfceux.xml'): - glade_file = 'data/gfceux.xml' + if os.path.isfile('data/gfceux.glade'): + glade_file = 'data/gfceux.glade' # Then check to see if its installed on a *nix system - elif os.path.isfile(os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.xml')): - glade_file = os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.xml') + elif os.path.isfile(os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.glade')): + glade_file = os.path.join(os.path.dirname(sys.argv[0]), '../share/gfceux/gfceux.glade') else: print 'ERROR.' print 'Could not find the glade UI file.'