1 |
|
/* |
2 |
|
* Prefs_glade.h - Global preferences, Glade/Gnome/Gtk+ specific stuff |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2004 Christian Bauer |
4 |
> |
* Frodo (C) 1994-1997,2002-2005 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
63 |
|
|
64 |
|
// No XML means no prefs editor |
65 |
|
if (!xml) |
66 |
< |
return false; |
66 |
> |
return startup; |
67 |
|
|
68 |
|
// Run editor |
69 |
|
result = false; |
198 |
|
ghost_widget("drive11_path", prefs->Emul1541Proc); |
199 |
|
|
200 |
|
ghost_widget("sid_filters", prefs->SIDType != SIDTYPE_DIGITAL); |
201 |
+ |
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "sid_filters")), prefs->SIDType == SIDTYPE_DIGITAL ? prefs->SIDFilters : (prefs->SIDType == SIDTYPE_SIDCARD ? true : false)); |
202 |
|
} |
203 |
|
|
204 |
|
|
243 |
|
prefs->SIDType = gtk_option_menu_get_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "sid_type"))); |
244 |
|
ghost_widgets(); |
245 |
|
} |
246 |
+ |
|
247 |
+ |
extern "C" void on_sid_filters_toggled(GtkToggleButton *button, gpointer user_data) |
248 |
+ |
{ |
249 |
+ |
prefs->SIDFilters = gtk_toggle_button_get_active(button); |
250 |
+ |
} |