Root/stardict/patches/030-disable-networking-and-scanning.patch

1* disable networking
2
3From: Xiangfu Liu <xiangfu@sharism.cc>
4
5* disable scan work
6---
7
8 src/conf.cpp | 8 ++++----
9 1 files changed, 4 insertions(+), 4 deletions(-)
10
11
12diff --git a/src/conf.cpp b/src/conf.cpp
13index 9f5e308..fa89c1e 100644
14--- a/src/conf.cpp
15+++ b/src/conf.cpp
16@@ -56,7 +56,7 @@ AppConf::AppConf() :
17 #else
18     add_entry("/apps/stardict/preferences/dictionary/use_custom_font", false);
19 #endif
20- add_entry("/apps/stardict/preferences/network/enable_netdict", true);
21+ add_entry("/apps/stardict/preferences/network/enable_netdict", false);
22     // Default stardictd server.
23     add_entry("/apps/stardict/preferences/network/server", std::string(_("dict.stardict.org")));
24     add_entry("/apps/stardict/preferences/network/port", 2628);
25@@ -69,18 +69,18 @@ AppConf::AppConf() :
26     add_entry("/apps/stardict/preferences/translate/engine", 0);
27     add_entry("/apps/stardict/preferences/translate/fromlang", 0);
28     add_entry("/apps/stardict/preferences/translate/tolang", 0);
29- add_entry("/apps/stardict/preferences/dictionary/enable_sound_event", true);
30+ add_entry("/apps/stardict/preferences/dictionary/enable_sound_event", false);
31     add_entry("/apps/stardict/preferences/dictionary/use_tts_program", false);
32     add_entry("/apps/stardict/preferences/dictionary/tts_program_cmdline", std::string());
33     add_entry("/apps/stardict/preferences/main_window/hide_list", false);
34- add_entry("/apps/stardict/preferences/dictionary/scan_selection", true);
35+ add_entry("/apps/stardict/preferences/dictionary/scan_selection", false);
36     add_entry("/apps/stardict/preferences/dictionary/markup_search_word", false);
37 #ifdef _WIN32
38     add_entry("/apps/stardict/preferences/dictionary/scan_clipboard", false);
39     add_entry("/apps/stardict/preferences/dictionary/use_scan_hotkey", true);
40     add_entry("/apps/stardict/preferences/dictionary/use_mainwindow_hotkey", true);
41 #endif
42- add_entry("/apps/stardict/preferences/notification_area_icon/query_in_floatwin", true);
43+ add_entry("/apps/stardict/preferences/notification_area_icon/query_in_floatwin", false);
44     add_entry("/apps/stardict/preferences/dictionary/only_scan_while_modifier_key", false);
45     add_entry("/apps/stardict/preferences/dictionary/hide_floatwin_when_modifier_key_released", true);
46     add_entry("/apps/stardict/preferences/floating_window/pronounce_when_popup", false);
47

Archive Download this file



interactive