ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/Prefs_glade.h
(Generate patch)

Comparing Frodo4/Src/Prefs_glade.h (file contents):
Revision 1.1 by cebix, 2004-01-13T19:52:49Z vs.
Revision 1.4 by cebix, 2004-01-23T15:25:32Z

# Line 97 | Line 97 | static void set_values()
97          gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "emul1541_proc")), prefs->Emul1541Proc);
98          gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "map_slash")), prefs->MapSlash);
99  
100        gtk_option_menu_set_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive8_type")), prefs->DriveType[0]);
101        gtk_option_menu_set_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive9_type")), prefs->DriveType[1]);
102        gtk_option_menu_set_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive10_type")), prefs->DriveType[2]);
103        gtk_option_menu_set_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive11_type")), prefs->DriveType[3]);
104
100          gtk_entry_set_text(GTK_ENTRY(gnome_file_entry_gtk_entry(GNOME_FILE_ENTRY(glade_xml_get_widget(xml, "drive8_path")))), prefs->DrivePath[0]);
101          gtk_entry_set_text(GTK_ENTRY(gnome_file_entry_gtk_entry(GNOME_FILE_ENTRY(glade_xml_get_widget(xml, "drive9_path")))), prefs->DrivePath[1]);
102          gtk_entry_set_text(GTK_ENTRY(gnome_file_entry_gtk_entry(GNOME_FILE_ENTRY(glade_xml_get_widget(xml, "drive10_path")))), prefs->DrivePath[2]);
# Line 156 | Line 151 | static void get_values()
151          prefs->Emul1541Proc = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "emul1541_proc")));
152          prefs->MapSlash = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(glade_xml_get_widget(xml, "map_slash")));
153  
159        prefs->DriveType[0] = gtk_option_menu_get_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive8_type")));
160        prefs->DriveType[1] = gtk_option_menu_get_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive9_type")));
161        prefs->DriveType[2] = gtk_option_menu_get_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive10_type")));
162        prefs->DriveType[3] = gtk_option_menu_get_history(GTK_OPTION_MENU(glade_xml_get_widget(xml, "drive11_type")));
163
154          get_drive_path(0, "drive8_path");
155          get_drive_path(1, "drive9_path");
156          get_drive_path(2, "drive10_path");
# Line 203 | Line 193 | static void ghost_widget(const char *nam
193  
194   static void ghost_widgets()
195   {
206        ghost_widget("drive9_type", prefs->Emul1541Proc);
207        ghost_widget("drive10_type", prefs->Emul1541Proc);
208        ghost_widget("drive11_type", prefs->Emul1541Proc);
196          ghost_widget("drive9_path", prefs->Emul1541Proc);
197          ghost_widget("drive10_path", prefs->Emul1541Proc);
198          ghost_widget("drive11_path", prefs->Emul1541Proc);
# Line 239 | Line 226 | extern "C" void on_quit_clicked(GtkButto
226  
227   extern "C" void on_about_activate(GtkMenuItem *menuitem, gpointer user_data)
228   {
229 <        gtk_widget_show(glade_xml_get_widget(xml, "about_win"));
229 >        GladeXML *about_xml = glade_xml_new(DATADIR "Frodo.glade", "about_win", NULL);
230 >        if (about_xml)
231 >                gtk_widget_show(glade_xml_get_widget(about_xml, "about_win"));
232   }
233  
234   extern "C" void on_emul1541_proc_toggled(GtkToggleButton *button, gpointer user_data)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines