[Tkabber-dev] r2065 - trunk/tkabber-plugins/otr

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sun Jan 19 23:08:14 MSK 2014


Author: sergei
Date: 2014-01-19 23:08:14 +0400 (Sun, 19 Jan 2014)
New Revision: 2065

Modified:
   trunk/tkabber-plugins/otr/otr.tcl
Log:
	* Changed progressbars max to 2.


Modified: trunk/tkabber-plugins/otr/otr.tcl
===================================================================
--- trunk/tkabber-plugins/otr/otr.tcl	2014-01-19 18:42:57 UTC (rev 2064)
+++ trunk/tkabber-plugins/otr/otr.tcl	2014-01-19 19:08:14 UTC (rev 2065)
@@ -439,7 +439,7 @@
     grid $l3 -row 1 -column 0 -sticky nsw
     set e3 [entry $pf2.e3]
     grid $e3 -row 2 -column 0 -sticky nswe
-    ProgressBar $pf2.pb -variable [namespace current]::ctx(progress,$xlib,$jid) -maximum 3
+    ProgressBar $pf2.pb -variable [namespace current]::ctx(progress,$xlib,$jid) -maximum 2
     grid $pf2.pb -row 3 -column 0 -sticky ew
     set l4 [label $pf2.l4 -textvariable [namespace current]::ctx(status,$xlib,$jid)]
     grid $l4 -row 4 -column 0
@@ -750,22 +750,22 @@
 	    incr ctx(progress,$xlib,$jid)
 	}
 	SMP_ABORT {
-	    set ctx(progress,$xlib,$jid) 3
+	    set ctx(progress,$xlib,$jid) 2
 	    set ctx(status,$xlib,$jid) [::msgcat::mc "Authentication aborted"]
 	    result_smp $w $xlib $jid
 	}
 	SMP_CHEATING {
-	    set ctx(progress,$xlib,$jid) 3
+	    set ctx(progress,$xlib,$jid) 2
 	    set ctx(status,$xlib,$jid) [::msgcat::mc "Protocol error"]
 	    result_smp $w $xlib $jid
 	}
 	SMP_SUCCESS {
-	    set ctx(progress,$xlib,$jid) 3
+	    set ctx(progress,$xlib,$jid) 2
 	    set ctx(status,$xlib,$jid) [::msgcat::mc "Authentication succeeded"]
 	    result_smp $w $xlib $jid
 	}
 	SMP_FAILURE {
-	    set ctx(progress,$xlib,$jid) 3
+	    set ctx(progress,$xlib,$jid) 2
 	    set ctx(status,$xlib,$jid) [::msgcat::mc "Authentication failed"]
 	    result_smp $w $xlib $jid
 	}



More information about the Tkabber-dev mailing list