1 diff -Nuard control-center-2.4.0.orig/capplets/default-applications/gnome-default-applications-properties.c control-center-2.4.0/capplets/default-applications/gnome-default-applications-properties.c
2 --- control-center-2.4.0.orig/capplets/default-applications/gnome-default-applications-properties.c 2003-08-01 21:45:43.000000000 +0200
3 +++ control-center-2.4.0/capplets/default-applications/gnome-default-applications-properties.c 2003-09-11 23:20:24.000000000 +0200
5 if (strcmp (mime_app->command, li_app->command) == 0 &&
6 mime_app->requires_terminal == li_app->requires_terminal) {
7 gtk_entry_set_text (GTK_ENTRY (WID ("text_select_combo_entry")), _(mime_app->name));
8 - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("text_custom_radio")), TRUE);
9 + gtk_widget_set_sensitive(WID ("text_select_combo") ,TRUE);
10 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("text_select_radio")), TRUE);
11 gnome_vfs_mime_application_free (mime_app);
14 gnome_vfs_mime_set_default_application ("text/plain", mime_app->id);
15 gnome_vfs_application_registry_sync ();
20 - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("text_select_radio")), TRUE);
21 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("text_custom_radio")), TRUE);
23 gnome_vfs_mime_application_free (mime_app);
25 for (i = 0; i < G_N_ELEMENTS (possible_browsers); i++ ) {
26 if (possible_browsers[i].in_path == FALSE)
29 - if (browser && strcmp (browser, possible_browsers[i].command) == 0 &&
30 - needs_term == possible_browsers[i].needs_term) {
32 + if (browser && (strcmp (browser, possible_browsers[i].command) == 0)
33 + && needs_term == possible_browsers[i].needs_term) {
34 gtk_entry_set_text (GTK_ENTRY (WID ("web_select_combo_entry")),
35 _(possible_browsers[i].name));
36 - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("web_custom_radio")), TRUE);
38 + gtk_widget_set_sensitive (WID ("web_select_combo"), TRUE);
39 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("web_select_radio")), TRUE);
44 - gtk_toggle_button_set_inconsistent (GTK_TOGGLE_BUTTON (WID ("web_select_radio")), TRUE);
45 - gtk_toggle_button_set_inconsistent (GTK_TOGGLE_BUTTON (WID ("web_custom_radio")), TRUE);
46 + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("web_custom_radio")), TRUE);
52 if (possible_mailers[i].in_path == FALSE)
55 - if (mailer && strcmp (mailer, possible_mailers[i].command) == 0 &&
56 - needs_term == possible_mailers[i].needs_term) {
57 + if (mailer && (strcmp (mailer, possible_mailers[i].command) == 0)
58 + && needs_term == possible_mailers[i].needs_term) {
59 gtk_entry_set_text (GTK_ENTRY (WID ("mail_select_combo_entry")),
60 _(possible_mailers[i].name));
61 - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("mail_custom_radio")), TRUE);
63 + gtk_widget_set_sensitive (WID ("mail_select_combo"), TRUE);
64 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("mail_select_radio")), TRUE);
69 - gtk_toggle_button_set_inconsistent (GTK_TOGGLE_BUTTON (WID ("mail_select_radio")), TRUE);
70 - gtk_toggle_button_set_inconsistent (GTK_TOGGLE_BUTTON (WID ("mail_custom_radio")), TRUE);
71 + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("mail_custom_radio")), TRUE);
77 strcmp (exec_arg?exec_arg:"", possible_terminals[i].exec_arg) == 0) {
78 gtk_entry_set_text (GTK_ENTRY (WID ("terminal_select_combo_entry")),
79 _(possible_terminals[i].name));
80 - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("terminal_custom_radio")), TRUE);
82 + gtk_widget_set_sensitive (WID ("terminal_select_combo"), TRUE);
83 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("terminal_select_radio")), TRUE);
89 - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("terminal_select_radio")), TRUE);
90 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("terminal_custom_radio")), TRUE);