Skip to content

Commit 5500de4

Browse files
author
JackChen
committed
模块加载移动到init-research.scm
1 parent d61b26e commit 5500de4

3 files changed

Lines changed: 1 addition & 8 deletions

File tree

TeXmacs/progs/init-research.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@
247247
(lazy-define (table table-widgets) open-cell-properties open-table-properties)
248248
(tm-property (open-cell-properties) (:interactive #t))
249249
(tm-property (open-table-properties) (:interactive #t))
250+
(use-modules (generic text-toolbar))
250251
;;(display* "time: " (- (texmacs-time) boot-start) "\n")
251252
;;(display* "memory: " (texmacs-memory) " bytes\n")
252253

@@ -526,4 +527,3 @@
526527
(display "Timing:") (display (- (texmacs-time) start-time)) (newline)
527528
;(quit-TeXmacs)
528529
))))))))))))
529-

src/Edit/Interface/edit_mouse.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,12 +1189,6 @@ edit_interface_rep::should_show_text_toolbar () {
11891189
}
11901190
text_toolbar_last_check= now;
11911191

1192-
static bool text_toolbar_module_loaded= false;
1193-
if (!text_toolbar_module_loaded) {
1194-
eval ("(use-modules (generic text-toolbar))");
1195-
text_toolbar_module_loaded= true;
1196-
}
1197-
11981192
if (!as_bool (call ("text-toolbar-allowed-context?"))) {
11991193
text_toolbar_last_result= false;
12001194
return false;

src/Plugins/Qt/QTMTextToolbar.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ QTMTextToolbar::clearButtons () {
8888

8989
void
9090
QTMTextToolbar::rebuildButtonsFromScheme () {
91-
eval ("(use-modules (generic text-toolbar))");
9291
object menu= eval ("'(horizontal (link text-toolbar-icons))");
9392
object obj = call ("make-menu-widget", menu, 0);
9493
if (!is_widget (obj)) return;

0 commit comments

Comments
 (0)