Revision: 45461
http://sourceforge.net/p/vice-emu/code/45461
Author: compyx
Date: 2025-01-12 22:24:28 +0000 (Sun, 12 Jan 2025)
Log Message:
-----------
Gtk3: Don't require a memory image file for RAMLink emulation check button
The RAMLink emulation functions without a RAM image file present, so the logic
checking for a RAM image file in the "Enable" check button handling has been
removed.
(See bug #2119)
Modified Paths:
--------------
trunk/vice/src/arch/gtk3/widgets/settings_ramlink.c
Modified: trunk/vice/src/arch/gtk3/widgets/settings_ramlink.c
===================================================================
--- trunk/vice/src/arch/gtk3/widgets/settings_ramlink.c 2025-01-10 12:04:14 UTC (rev 45460)
+++ trunk/vice/src/arch/gtk3/widgets/settings_ramlink.c 2025-01-12 22:24:28 UTC (rev 45461)
@@ -187,25 +187,16 @@
GtkWidget *size;
GtkWidget *wrapper;
int row = 0;
- const char *image = NULL;
- int cart_enabled;
- resources_get_string("RAMLINKfilename", &image);
- cart_enabled = cartridge_type_enabled(CARTRIDGE_RAMLINK);
-
grid = gtk_grid_new();
gtk_grid_set_row_spacing(GTK_GRID(grid), 16);
/* create 'enable ramlink' checkbox */
/* we can't use a `resource_check_button` here, since toggling the resource
- * depends on whether an image file is specified
+ * depends on whether a BIOS image file is specified
*/
enable = gtk_check_button_new_with_label("Enable " CARTRIDGE_NAME_RAMLINK " emulation");
- /* only set state to true if both the state is true and an image is given */
- if (cart_enabled && (image != NULL && *image != '\0')) {
- gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(enable), TRUE);
- }
- g_signal_connect(enable,
+ g_signal_connect(G_OBJECT(enable),
"toggled",
G_CALLBACK(on_enable_toggled),
NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|