Tkabber contrib

Check-in [1dfc897b2c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:gui_action.tcl: Got rid of [lempty] call because it will be removed from Tkabber in the nearest future.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:1dfc897b2c2ab287e451669f5ee74b7e8bdd19f3
User & Date: sgolovan 2015-03-30 07:06:56
Context
2015-03-30
07:08
transportswitch.tcl: Dropped calls to [lrmdups] because this command will be removed from Tkabber soon. check-in: 7e0a98e6b9 user: sgolovan tags: trunk
07:06
gui_action.tcl: Got rid of [lempty] call because it will be removed from Tkabber in the nearest future. check-in: 1dfc897b2c user: sgolovan tags: trunk
07:04
bldjid2.tcl: Got rid of [lcontain] and [cequal] calls because they are about to be removed from Tkabber. check-in: 2c2736ffd4 user: sgolovan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to notes/gui_actions.tcl.



1
2
3
4
5
6
7
.
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24


namespace eval gui_actions {
# TODO: need here, or only in ::plugins::notes?
#    package require msgcat
}

proc gui_actions::load {} {
    hook::add chat_win_popup_menu_hook [namespace current]::selection_popup 90
................................................................................
}

proc gui_actions::unload {} {
    hook::remove chat_win_popup_menu_hook [namespace current]::selection_popup 90
}

proc gui_actions::selection_popup {m W X Y x y} {
    if {[lempty [$W tag ranges sel]] || \
        [llength [plugins::notes::connections]] == 0} \
    {
        set state disabled
    } else {
        set state normal
    }

    $m add command -label [::msgcat::mc "Copy selection to new note"] \
        -command [list [namespace current]::CopySelection $W] \
>
>







 







|
|
<







1
2
3
4
5
6
7
8
9
..
10
11
12
13
14
15
16
17
18

19
20
21
22
23
24
25
# gui_action.tcl --

namespace eval gui_actions {
# TODO: need here, or only in ::plugins::notes?
#    package require msgcat
}

proc gui_actions::load {} {
    hook::add chat_win_popup_menu_hook [namespace current]::selection_popup 90
................................................................................
}

proc gui_actions::unload {} {
    hook::remove chat_win_popup_menu_hook [namespace current]::selection_popup 90
}

proc gui_actions::selection_popup {m W X Y x y} {
    if {[llength [$W tag ranges sel]] == 0 || \
        [llength [plugins::notes::connections]] == 0} {

        set state disabled
    } else {
        set state normal
    }

    $m add command -label [::msgcat::mc "Copy selection to new note"] \
        -command [list [namespace current]::CopySelection $W] \