mirror of
https://github.com/0ldsk00l/nestopia.git
synced 2024-06-22 06:02:26 -04:00
Call it GTK instead of GTK+
This commit is contained in:
parent
c4e834989a
commit
5b6157fe8d
|
@ -4,7 +4,7 @@ Linux port. The purpose of the project is to make sure people who want
|
|||
a standalone GUI for the Nestopia emulator have this option available.
|
||||
|
||||
Current Project Goals:
|
||||
* Move the GTK+ project focus to a simple UI on top of a community maintained core
|
||||
* Move the GTK build to a simple UI on top of a community maintained core
|
||||
* Merge win32 sources back into main project and set up CI builds for Windows binaries
|
||||
* Allow loading different forks/revisions of the emulator core (Maybe)
|
||||
|
||||
|
|
|
@ -36,8 +36,6 @@ void cli_error(const char *message) {
|
|||
void cli_show_usage() {
|
||||
printf("Usage: nestopia [options] [FILE]\n");
|
||||
printf("\nOptions:\n");
|
||||
//printf(" -d, --disablegui Disable GTK+ GUI\n");
|
||||
//printf(" -e, --enablegui Enable GTK+ GUI\n\n");
|
||||
printf(" -f, --fullscreen Fullscreen mode\n");
|
||||
printf(" -w, --window Window mode\n\n");
|
||||
printf(" -l, --filter Video Filter\n");
|
||||
|
|
|
@ -79,7 +79,7 @@ void gtkui_quit() {
|
|||
}
|
||||
|
||||
void gtkui_init(int argc, char *argv[]) {
|
||||
// Initialize the GTK+ GUI
|
||||
// Initialize the GTK GUI
|
||||
gtk_init(&argc, &argv);
|
||||
gtkui_create();
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ static void gtkui_glarea_realize(GtkGLArea *glarea) {
|
|||
|
||||
static void gtkui_swapbuffers() {
|
||||
gtk_widget_queue_draw(drawingarea);
|
||||
gtk_widget_queue_draw(menubar); // Needed on some builds of GTK+3
|
||||
gtk_widget_queue_draw(menubar); // Needed on some builds of GTK3
|
||||
nst_ogl_render();
|
||||
nst_emuloop();
|
||||
|
||||
|
@ -143,7 +143,7 @@ dimensions_t gtkui_video_get_dimensions() {
|
|||
}
|
||||
|
||||
void gtkui_create() {
|
||||
// Create the GTK+ Window
|
||||
// Create the GTK Window
|
||||
|
||||
gtkui_image_paths();
|
||||
GdkPixbuf *icon = gdk_pixbuf_new_from_file(iconpath, NULL);
|
||||
|
@ -484,7 +484,7 @@ void gtkui_signals_deinit() {
|
|||
}
|
||||
|
||||
void gtkui_resize() {
|
||||
// Resize the GTK+ window
|
||||
// Resize the GTK window
|
||||
if (gtkwindow) {
|
||||
video_set_dimensions();
|
||||
dimensions_t rendersize = nst_video_get_dimensions_render();
|
||||
|
@ -669,7 +669,7 @@ int main(int argc, char *argv[]) {
|
|||
gtkui_set_title(nstpaths.gamename);
|
||||
}
|
||||
|
||||
// Start GTK+ main loop
|
||||
// Start GTK main loop
|
||||
gtk_main();
|
||||
|
||||
// Remove the cartridge and shut down the NES
|
||||
|
|
|
@ -33,7 +33,7 @@ extern nstpaths_t nstpaths;
|
|||
extern GtkWidget *gtkwindow;
|
||||
|
||||
void gtkui_file_open() {
|
||||
// Open a file using a GTK+ dialog
|
||||
// Open a file using a GTK dialog
|
||||
GtkWidget *dialog = gtk_file_chooser_dialog_new(
|
||||
"Select a ROM",
|
||||
GTK_WINDOW(gtkwindow),
|
||||
|
|
|
@ -94,7 +94,7 @@ static int gtkui_input_config_match(void* user, const char* section, const char*
|
|||
}
|
||||
|
||||
void gtkui_input_set_default() {
|
||||
// Set the default input for GTK+
|
||||
// Set the default input for GTK
|
||||
|
||||
// Gamepads
|
||||
pad[0].u = GDK_KEY_Up;
|
||||
|
@ -196,7 +196,7 @@ void gtkui_input_config_write() {
|
|||
|
||||
FILE *fp = fopen(inputconfpath, "w");
|
||||
if (fp != NULL) {
|
||||
fprintf(fp, "; Nestopia UE GTK+ Input Configuration File\n\n");
|
||||
fprintf(fp, "; Nestopia UE GTK Input Configuration File\n\n");
|
||||
fprintf(fp, "; Values for keyboard input are these values with the GDK_KEY_ prefix removed:\n; https://git.gnome.org/browse/gtk+/plain/gdk/gdkkeysyms.h\n\n");
|
||||
|
||||
fprintf(fp, "[ui]\n");
|
||||
|
|
Loading…
Reference in a new issue