]> git.pld-linux.org Git - packages/control-center.git/blame - control-center-def-apps-capplet.patch
- up to version 2.6.1
[packages/control-center.git] / control-center-def-apps-capplet.patch
CommitLineData
1e1c8493
MK
1diff -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
4@@ -259,7 +259,7 @@
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);
12 return;
13@@ -279,8 +279,9 @@
14 gnome_vfs_mime_set_default_application ("text/plain", mime_app->id);
15 gnome_vfs_application_registry_sync ();
16
17+
18+
19 read_editor_custom:
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);
22 if (mime_app)
23 gnome_vfs_mime_application_free (mime_app);
24@@ -388,19 +389,20 @@
25 for (i = 0; i < G_N_ELEMENTS (possible_browsers); i++ ) {
26 if (possible_browsers[i].in_path == FALSE)
27 continue;
917b36ed 28-
1e1c8493
MK
29- if (browser && strcmp (browser, possible_browsers[i].command) == 0 &&
30- needs_term == possible_browsers[i].needs_term) {
31+
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);
37+
38+ gtk_widget_set_sensitive (WID ("web_select_combo"), TRUE);
39 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("web_select_radio")), TRUE);
40 g_free (browser);
41 return;
42 }
43 }
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);
47+
48 g_free (browser);
49 }
50
51@@ -427,18 +429,19 @@
52 if (possible_mailers[i].in_path == FALSE)
53 continue;
917b36ed 54
1e1c8493
MK
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);
62+
63+ gtk_widget_set_sensitive (WID ("mail_select_combo"), TRUE);
64 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("mail_select_radio")), TRUE);
65 g_free (mailer);
66 return;
67 }
68 }
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);
72+
73 g_free (mailer);
74
75
76@@ -510,17 +513,18 @@
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);
81+
82+ gtk_widget_set_sensitive (WID ("terminal_select_combo"), TRUE);
83 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (WID ("terminal_select_radio")), TRUE);
84 g_free (exec);
85 g_free (exec_arg);
86 return;
87 }
88 }
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);
91 g_free (exec);
92 g_free (exec_arg);
93+
94 }
95
96 static void
This page took 0.054464 seconds and 4 git commands to generate.