Tkabber

Check-in [2887fd6fa6]
Login

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

Overview
Comment:Use grid instead of pack for the roster and roster filter because it works better when the main window is being resized.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2887fd6fa60bd73313ffeddd04918f797f708955
User & Date: sgolovan 2015-12-27 12:48:10
Context
2015-12-29
04:22
Enabled TLS1.1 and TLS1.2 protocols if they are available. check-in: 4e5b407895 user: sgolovan tags: trunk
2015-12-27
12:48
Use grid instead of pack for the roster and roster filter because it works better when the main window is being resized. check-in: 2887fd6fa6 user: sgolovan tags: trunk
2015-12-26
18:35
Added another user setting. It specifies the maximum time interval between two unsuccessful connection retries. check-in: 1f18237022 user: sgolovan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.







1
2
3
4
5
6
7






2015-12-26  Sergei Golovan  <sgolovan@nes.ru>

	* plugins/general/gpgme.tcl: Don't look at the GPG_AGENT_INFO
	  environment variable. Just set the passphrase callback property
	  unconditionally because in the presence of gpg-agent it's simply
	  ignored.

>
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
13
2015-12-27  Sergei Golovan  <sgolovan@nes.ru>

	* ifacetk/iface.tcl, ifacetk/roster.tcl: Use grid instead of pack for
	  the roster and roster filter because it works better when the main
	  window is being resized.

2015-12-26  Sergei Golovan  <sgolovan@nes.ru>

	* plugins/general/gpgme.tcl: Don't look at the GPG_AGENT_INFO
	  environment variable. Just set the passphrase callback property
	  unconditionally because in the presence of gpg-agent it's simply
	  ignored.

Changes to ifacetk/iface.tcl.

844
845
846
847
848
849
850

851


852
853
854
855
856
857
858
        roster::create .roster -width $rosterwidth -height 300 \
            -popup [namespace current]::roster::popup_menu \
            -grouppopup [namespace current]::roster::group_popup_menu \
            -singleclick [namespace current]::roster::user_singleclick \
            -doubleclick [namespace current]::roster::jid_doubleclick \
            -draginitcmd [namespace current]::roster::draginitcmd \
            -dropcmd [namespace current]::roster::dropcmd

        pack .roster -expand yes -fill both -side top -in $rw -anchor w



        grid columnconfigure $nw 1 -weight 1
        grid rowconfigure $nw 1 -weight 1

        ButtonBar .nb -orient horizontal \
                      -pady 1 \
                      -padx 4 \







>
|
>
>







844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
        roster::create .roster -width $rosterwidth -height 300 \
            -popup [namespace current]::roster::popup_menu \
            -grouppopup [namespace current]::roster::group_popup_menu \
            -singleclick [namespace current]::roster::user_singleclick \
            -doubleclick [namespace current]::roster::jid_doubleclick \
            -draginitcmd [namespace current]::roster::draginitcmd \
            -dropcmd [namespace current]::roster::dropcmd
        grid .roster -row 0 -column 0 -sticky nswe -in $rw

        grid columnconfigure $rw 0 -weight 1
        grid rowconfigure $rw 0 -weight 1

        grid columnconfigure $nw 1 -weight 1
        grid rowconfigure $nw 1 -weight 1

        ButtonBar .nb -orient horizontal \
                      -pady 1 \
                      -padx 4 \

Changes to ifacetk/roster.tcl.

255
256
257
258
259
260
261


262
263
264

265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289

hook::add finload_hook [namespace current]::roster::create_filter_entry

proc roster::pack_filter_entry {args} {
    global usetabbar
    variable options



    if {$options(use_filter)} {
        if {$usetabbar} {
            pack .roster_filter -before .roster \

                                -anchor w \
                                -side bottom \
                                -fill x \
                                -expand no \
                                -in $::ifacetk::rw
        } else {
            grid .roster_filter -row 2 \
                                -column 1 \
                                -sticky we \
                                -in [$::ifacetk::mf getframe]
        }
        focus .roster_filter
    } else {
        if {$usetabbar} {
            pack forget .roster_filter
        } else {
            grid forget .roster_filter
        }
    }
    redraw_after_idle
}

proc roster::filter_match {xlib jid} {
    variable options








>
>


|
>
|
<
<
<









<
<
<
|
<







255
256
257
258
259
260
261
262
263
264
265
266
267
268



269
270
271
272
273
274
275
276
277



278

279
280
281
282
283
284
285

hook::add finload_hook [namespace current]::roster::create_filter_entry

proc roster::pack_filter_entry {args} {
    global usetabbar
    variable options

    if {![winfo exists .roster_filter]} return

    if {$options(use_filter)} {
        if {$usetabbar} {
            grid .roster_filter -row 1 \
                                -column 0 \
                                -sticky we \



                                -in $::ifacetk::rw
        } else {
            grid .roster_filter -row 2 \
                                -column 1 \
                                -sticky we \
                                -in [$::ifacetk::mf getframe]
        }
        focus .roster_filter
    } else {



        grid forget .roster_filter

    }
    redraw_after_idle
}

proc roster::filter_match {xlib jid} {
    variable options